new QueryConfig(settingsopt)
Contains fields that determine when an AlertRule should trigger.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings |
Object |
<optional> |
An object containing initial values for the new QueryConfig instance.
Properties
|
Members
predicate :String
The predicate of the query that will execute to determine whether or not to trigger this AlertRule. The predicate can be thought of as the condition under which the AlertRule should fire. The format should follow the LiveQL specification. An example predicate might be: "category='toy' and quantityRemaining < 40".
Type:
- String
predicateDelayInMillis :Number
The predicate delay time specifies how long the predicate condition must be true before triggering the AlertRule.
Type:
- Number
projection :String
The projection of the query will execute in the case of an aggregate query to determine the aggregate condition.
Type:
- String
queryType :String
Indicates what type of query will be executed to evaluate the AlertRule condition. Possible values include: SNAPSHOT, SNAPSHOT_AND_CONTINUOUS, CONTINUOUS, and DELETE.
Type:
- String
table :String
The name of the LiveView table that the AlertRule will be monitoring.
Type:
- String