MetricsEventReportingTask

Description:

Triggers rules-driven actions based on metrics values

Additional Details...

Tags:

reporting, rules, action, action handler, status, connection, processor, jvm, metrics, history, bulletin, sql

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
SQL Querysql-reporting-querySQL SELECT statement specifies which tables to query and how data should be filtered/transformed. SQL SELECT can select from the CONNECTION_STATUS, PROCESSOR_STATUS, BULLETINS, PROCESS_GROUP_STATUS, JVM_METRICS, CONNECTION_STATUS_PREDICTIONS, or PROVENANCE tables. Note that the CONNECTION_STATUS_PREDICTIONS table is not available for querying if analytics are not enabled).
Supports Expression Language: true (will be evaluated using variable registry only)
Rules Engine Servicerules-engine-serviceController Service API:
RulesEngineService
Implementations: EasyRulesEngineService
ScriptedRulesEngine
Specifies the Controller Service to use for applying rules to metrics.
Event Action Handleraction-handlerController Service API:
PropertyContextActionHandler
Implementations: AlertHandler
ScriptedActionHandler
RecordSinkHandler
ActionHandlerLookup
LogHandler
ExpressionHandler
Handler that will execute the defined action returned from rules engine (if Action type is supported by the handler)
Default Decimal Precisiondbf-default-precision10When a DECIMAL/NUMBER value is written as a 'decimal' Avro logical type, a specific 'precision' denoting number of available digits is required. Generally, precision is defined by column data type definition or database engines default. However undefined precision (0) can be returned from some database engines. 'Default Decimal Precision' is used when writing those undefined precision numbers.
Supports Expression Language: true (will be evaluated using variable registry only)
Default Decimal Scaledbf-default-scale0When a DECIMAL/NUMBER value is written as a 'decimal' Avro logical type, a specific 'scale' denoting number of available decimal digits is required. Generally, scale is defined by column data type definition or database engines default. However when undefined precision (0) is returned, scale can also be uncertain with some database engines. 'Default Decimal Scale' is used when writing those undefined numbers. If a value has more decimals than specified scale, then the value will be rounded-up, e.g. 1.53 becomes 2 with scale 0, and 1.5 with scale 1.
Supports Expression Language: true (will be evaluated using variable registry only)

State management:

ScopeDescription
LOCALStores the Reporting Task's last execution time so that on restart the task knows where it left off.

Restricted:

This component is not restricted.

System Resource Considerations:

None specified.