forked from capensis/canopsis
-
Notifications
You must be signed in to change notification settings - Fork 0
Trigger specification
william-p edited this page Feb 13, 2013
·
4 revisions
Draft
{
actions: [ ],
conditions: {
time_conditions: [ ],
event_conditions: [ ],
metro_conditions: [ ]
}
}
This action override value of an event Ex:
{
type: "override",
field: <FIELD_NAME>,
value: <VALUE_TO_OVERRIDE>
}
Ex:
{
type: "time_interval",
startTs: <TIMESTAMP>,
stopTs: <TIMESTAMP>
}
True
if timestamp
>= startTs
and timestamp
< stopTs
else False
Ex:
{
type: "value",
metric: <METRIC_NAME>
op: <OPERATOR>,
value: <VALUE>,
state: <STATE>,
else_state: <STATE>
}
state
if metric.value
op
value
else else_state