Contains information of the event. It has the following structure:
{ "type": "JOB", "jobType": "IMPORT_RECORDS", "jobEvent": "FINISHED", "jobId": "589cdb2ae201af1d75ec2d83" }
jobType is the type of job.
jobType
jobEvent is the event of the job that triggered the listener.
jobEvent
jobId is the ID of the job. You can use it to find the job and get more information about it.
jobId
//finds job and checks if it had errors var job = sys.jobs.findById(event.jobId); sys.logs.info('*** ERRORS: '+job.hasErrors());