For the cron monitor but it would be really good if we could optionally return an exit status with the end ping.
Currently on cron job failure we have to wait for the monitor to time out.
Something like the following would be ideal.
plus.site24x7.com/cron/{api key}/{monitor display name/device key}/end?status=XXXX&message=YYYYYY
Hi,
To mark the cron monitor as Trouble:
"https://plus.site24x7.com/cron/<apikey>/<monitor name>/event?status=2&msg=some message or reason"
To mark the cron monitor as Down:
"https://plus.site24x7.com/cron/<apikey>/<monitor name>/event?status=0&msg=some message or reason"
To mark the cron monitor as Critical:
"https://plus.site24x7.com/cron/<apikey>/<monitor name>/event?status=3&msg=some message or reason"
Once the script fails, you will also get email alerts for the monitor status change with the error reason that you send in the "msg" param. The "/event" endpoint will send the email alerts.
Hope this helps. Let us know for further questions, if any, in the below thread.
Regards
Mathangi