Triggers rules-driven actions based on metrics values
reporting, rules, action, action handler, status, connection, processor, jvm, metrics, history, bulletin, sql
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 Name | API Name | Default Value | Allowable Values | Description |
|---|---|---|---|---|
| SQL Query | sql-reporting-query | SQL 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 Service | rules-engine-service | Controller Service API: RulesEngineService Implementations: EasyRulesEngineService ScriptedRulesEngine | Specifies the Controller Service to use for applying rules to metrics. | |
| Event Action Handler | action-handler | Controller 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 Precision | dbf-default-precision | 10 | When 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 Scale | dbf-default-scale | 0 | When 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) |
| Scope | Description |
|---|---|
| LOCAL | Stores the Reporting Task's last execution time so that on restart the task knows where it left off. |