You just have to inform CronDrive when your job or script starts(optional) and ends.
To track that your job has started, you must call the URL https://job.crondrive.com/{token-job}/start
To track that your job has ended, you must call the URL https://job.crondrive.com/{token-job}/end
CronDrive will send you an alert if it has not received a tracking call (start or end). You can set the waiting time for sending alerts. You can also pause sending alerts.
You can monitor your cron jobs by following the steps below:
Example on linux systems
Before:
0 */2 * * * partial_backup.sh
After:
0 */2 * * * curl https://job.crondrive.com/uG2Exw/start || partial_backup.sh && curl https://job.crondrive.com/uG2Exw/end
Description | Endpoint |
---|---|
Tracking call start job | GET https://job.crondrive.com/{token-job}/start |
Tracking call end job | GET https://job.crondrive.com/{token-job}/end |
Pause job monitoring, no alerts will be sent | GET https://job.crondrive.com/{token-job}/pause |
Resume job monitoring, alerts will be sent | GET https://job.crondrive.com/{token-job}/resume |
If your team uses Slack, you can set up CronDrive to send alerts to a Slack channel.
When you click on the "Add to Slack" button, you must choose the channel where CronDrive will send the alerts.