NIFI-5339 - Better Time Tracking for ExecuteSQL Durations

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #2824.
This commit is contained in:
patricker 2018-06-29 08:33:51 -06:00 committed by Pierre Villard
parent c1083dfb62
commit a14dbc7dbe
1 changed files with 3 additions and 1 deletions

View File

@ -92,7 +92,9 @@ import static org.apache.nifi.processors.standard.util.JdbcCommon.USE_AVRO_LOGIC
})
@WritesAttributes({
@WritesAttribute(attribute="executesql.row.count", description = "Contains the number of rows returned in the select query"),
@WritesAttribute(attribute="executesql.query.duration", description = "Duration of the query in milliseconds"),
@WritesAttribute(attribute="executesql.query.duration", description = "Combined duration of the query execution time and fetch time in milliseconds"),
@WritesAttribute(attribute="executesql.query.executiontime", description = "Duration of the query execution time in milliseconds"),
@WritesAttribute(attribute="executesql.query.fetchtime", description = "Duration of the result set fetch time in milliseconds"),
@WritesAttribute(attribute="executesql.resultset.index", description = "Assuming multiple result sets are returned, "
+ "the zero based index of this result set.")
})