Class: QueryConfig

LiveView.AlertRule. QueryConfig

new LiveView.AlertRule.QueryConfig(settings)

Contains fields that determine when an AlertRule should trigger.
Name Type Description
settings Object optional An object containing initial values for the new QueryConfig instance.
Name Type Description
predicate String optional 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".
predicateDelayInMillis Number optional The predicate delay time specifies how long the predicate condition must be true before triggering the AlertRule.
queryType String optional Indicates what type of query will be executed to evaluate the AlertRule condition. Possible values include: SNAPSHOT, SNAPSHOT_AND_CONTINUOUS, CONTINUOUS, and DELETE.
table String optional The name of the LiveView table that the AlertRule will be monitoring.

Members

predicateString

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".

predicateDelayInMillisNumber

The predicate delay time specifies how long the predicate condition must be true before triggering the AlertRule.

queryTypeString

Indicates what type of query will be executed to evaluate the AlertRule condition. Possible values include: SNAPSHOT, SNAPSHOT_AND_CONTINUOUS, CONTINUOUS, and DELETE.

tableString

The name of the LiveView table that the AlertRule will be monitoring.