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".
projection String optional The projection of the query will execute to determine in the case of an aggregate query to determine the aggregate condition.
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".

projectionString

The projection of the query will execute in the case of an aggregate query to determine the aggregate condition.

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.