Apart from e-mail notifications, starting with Resilio Connect v2.9 and higher, it is now possible to set up webhooks. A callback can be triggered by any of the occurring events - a job run finished, a job run not finished or an error appeared on a job run - same as for e-mail notifications.
If webhook destination does not respond in a timely manner, MC v3.3 will send another notification in 2 minutes. MC of older versions will do that only after restart.
Settings up a webhook notification is done in two steps.
1. Configure the Webhook itself. Only SuperAdmins and Admins can configure Webhooks from the Management Console "Settings" tab -> Notifications -> Webhooks.
By default, https POST request is used, Content-Type: application/json. Give it some custom name to easily recognize it later.
Once done, use the webhook as a recipient for a notification:
The output is in JSON format, with the following default schema, which is not configurable though.
{ "trigger": "", "job_run": { } }
Trigger can be either:
JOB_RUN_ERROR
for "On Error" trigger;JOB_RUN_FAILED
for "Job run not complete" trigger;JOB_RUN_FINISHED
for "Job run complete" trigger.
job_run
object shows information about the job run per API documentation.