data – status properties

Name Value Count
name path 1 Name of job to which this status applies.
state SCHEDULED
WAITING
STARTING
RUNNING
STOPPING
STOPPED
KILLING
BYPASS
DISABLED
UNKNOWN
1 Job state.
result SUCCESS
ERROR
MISSED
KILLED
EXCEPTION
UNKNOWN
1 Job result.
value int 1 Returned by job.
timestamp long 1 Time in milliseconds since January 1, 1970.
startTimestamp long 1 Time in milliseconds since January 1, 1970, when the job was started.
message string 0/1 Result message.
hasOutput boolean 0/1 Job produced output, which was saved. Default = false.
output output 0/1 Output of job. This field is not popultated by default, so it is possible for hasOutput to be TRUE, and this field to be empty.
trigger j:path
s:
u:user
0/1 Name of job which triggered the job.
Job was triggered by one its schedules.
Name of user who triggered the job.

A condition must have a state and/or result value.

Examples

job started

{ "name": "/examples/success-no-output", "state": "STARTING", "result": "UNKNOWN", "value": -1, "timestamp": 1477811398962 "startTimestamp": 1477811398962 "trigger": "u:jsmith" }

name: /examples/success-no-output state: STARTING result: UNKNOWN value: -1 timestamp: 1477811398962 startTimestamp: 1477811398962 trigger: u:jsmith

Success, no output

{ "name": "/examples/success-no-output", "state": "STOPPED", "result": "SUCCESS", "value": 0, "timestamp": 1477811399085 "startTimestamp": 1477811398962 }

name: /examples/success-no-output state: STOPPED result: SUCCESS value: 0 timestamp: 1477811399085 startTimestamp: 1477811398962

Success, output not included

{ "name": "/examples/random-user", "state": "STOPPED", "result": "SUCCESS", "value": 200, "timestamp": 1477810813842, "startTimestamp": 1477810813755, "message": "OK", "hasOutput": true, }}

name: /examples/random-user state: STOPPED result: SUCCESS value: 200 timestamp: 1477810813842 startTimestamp: 1477810813755 message: OK hasOutput: true

Success, output included

{ "name": "/examples/random-user", "state": "STOPPED", "result": "SUCCESS", "value": 200, "timestamp": 1477810813842, "startTimestamp": 1477810813755, "message": "OK", "hasOutput": true, "output": {"head": [ "results:", " -", " gender: female", " name:", " title: mrs", " first: barb", " last: smith", " nat: IE" ]} }}

name: /examples/random-user state: STOPPED result: SUCCESS value: 200 timestamp: 1477810813842 startTimestamp: 1477810813755 message: OK hasOutput: true output: head: - 'results:' - ' -' - ' gender: female' - ' name:' - ' title: mrs' - ' first: barb' - ' last: smith' - ' nat: IE'

Error

{ "name": "/examples/failure", "state": "STOPPED", "result": "ERROR", "value": 301, "timestamp": 1477811141649, "startTimestamp": 1477811140362, "message": "Moved Permanently" }

name: /examples/failure state: STOPPED result: ERROR value: 301 timestamp: 1477811141649 startTimestamp: 1477811140362 message: Moved Permanently

See also