data – event properties

Name Value Count
type ALL
ANY
1 event type. ALL = condition, ANY = trigger.
ANY events are not supported when a job has one or more schedules.
job path 1 Name of job to which the event applies.
state RUNNING
STOPPED
SUCCESS
FAILED
ERROR
MISSED
KILLED
EXCEPTION
0/1 Default = SUCCESS, if state is also undefined.
maxAge period 0/1 Maximum age of condition. Only valid for ALL condition types, ignored otherwise. Default = no maximum age.

if the job property value starts with , this will be replaced by import command root parameter.

Examples

State condition

{ "type": "ALL", "job": "/examples/monimal/command", "state": "STOPPED" }

type: ALL job: /examples/minimal/command state: STOPPED

Result trigger

{ "type": "ANY", "job": "/examples/monimal/command", }

type: ANY job: /examples/minimal/command

Recent result condition

Condition is only matched, if result is less than 1 hour old.

{ "type": "ALL", "job": "/examples/monimal/command", "state": "FAILED" "maxAge": "1 HOUR" }

type: ALL job: /examples/minimal/command result: FAILED magAge: 1 HOUR

See also