data – event properties

Name Value Count
type CONDITION
TRIGGER
1 event type.
TRIGGER 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.
maxAge period 0/1 Maximum age of condition. Only valid for CONDITION types, ignored otherwise. Default = since last execution.

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

Examples

State condition

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

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

Result trigger

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

type: TRIGGER job: /examples/minimal/command

Recent result condition

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

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

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

See also