Heartbeat monitors for cron jobs
Know when a scheduled job, backup or script does not run.
Most monitors reach out to your system. A heartbeat monitor works the other way round: your job calls us when it runs, and we raise an alert if the call does not arrive in time.
- Create a monitor of type Heartbeat, set how often the job should run, and set a grace period, the extra time allowed before an alert.
- Copy the secret address shown on the monitor.
- Add a call to that address at the end of your job.
curl -fsS https://app.uptimewave.com/api/heartbeat/YOUR_TOKENTell us when the job fails
If the job ran but failed, call the same address with /fail on the end. We open an incident straight away instead of waiting for the grace period.
curl -fsS https://app.uptimewave.com/api/heartbeat/YOUR_TOKEN/fail