Appearance
Heartbeats
How it works
Each check has a period (how often your job runs) and a grace time (how late it may be). Your job calls the check's ping URL when it finishes. If no ping arrives within period + grace, the check goes down and you get an alert. When pings resume, it goes up and you get a recovery alert.
A new check stays quiet until its first ping.
Pinging
Any GET, POST or HEAD request works:
bash
# crontab: run at 03:00, then report in
0 3 * * * /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 https://on.dev/p/YOUR_PING_KEYThe response is OK with status 200, or 404 for an unknown key.
Start and fail signals
bash
curl -fsS https://on.dev/p/YOUR_PING_KEY/start # job started
curl -fsS https://on.dev/p/YOUR_PING_KEY/fail # job failed: alert now/fail marks the check down straight away. You can POST up to 1 KB of text (for example the last lines of a log) with any ping; it shows in the ping history and in the failure alert.
bash
./job.sh 2>&1 | tail -c 1000 | curl -fsS --data-binary @- https://on.dev/p/YOUR_PING_KEY/failStatus badges
Each check has a public badge URL that doesn't reveal the ping key:
markdown
Pausing
Pause a check while you do maintenance. A paused check sends no alerts. The next ping resumes it.
Timing
Checks are evaluated every minute, and a check goes down up to a minute after period + grace runs out. The shortest period is 5 minutes on Free and 1 minute on Pro. The shortest grace is one minute.
A check records at most one ping a minute. Pings sent more often still get OK, but they don't change anything.
Ping history is kept for 7 days on Free and 90 days on Pro. It keeps every start and fail ping and every ping that changes a check's status. If a job pings more often than its period, the history keeps at most two success pings per period.