Pinging API
On this page
A job reports to a check by requesting its ping URL. There is no authentication: the check's UUID, or the project's ping key plus a slug, is the secret. Requests go to the ping host over HTTPS and answer in plain text.
Which URLs are there?
| Signal | By UUID | By slug |
|---|---|---|
| Success | https://ping.cronmissed.com/<uuid> | https://ping.cronmissed.com/<ping-key>/<slug> |
| Start | …/<uuid>/start | …/<ping-key>/<slug>/start |
| Failure | …/<uuid>/fail | …/<ping-key>/<slug>/fail |
| Log only | …/<uuid>/log | …/<ping-key>/<slug>/log |
| Exit status | …/<uuid>/<0-255> | …/<ping-key>/<slug>/<0-255> |
An exit status of 0 is a success; any other number is a failure. /log records an event and a body without changing the state.
Which methods, parameters and headers?
- HEAD, GET and POST are accepted; any other method answers 405.
rid=<uuid>pairs a start with its finish. See run IDs.create=1creates a missing check on a slug URL. See auto-provisioning.- An
Idempotency-Keyheader of up to 200 characters makes a retried request count once within 24 hours. - Responses carry
Access-Control-Allow-Origin: *,Cache-Control: no-storeandPing-Body-Limit: 100000.
What can a ping carry?
The first 100,000 bytes of a POST body are kept with the ping, which is where error output belongs. Read more in ping bodies and logs. Responses are listed in ping responses.
curl -fsS --max-time 10 --retry 5 https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10/start
./job.sh 2>&1 | tail -c 100000 | curl -fsS --max-time 10 --retry 5 --data-binary @- https://ping.cronmissed.com/5f0c1b2e-7a3d-4c8e-9b61-2d4f8a7e3c10/$?Which transports work?
Use HTTPS. Plain HTTP requests are answered with a redirect to HTTPS, and a client that does not follow it loses the ping. The ping host is reached over IPv4 or dual stack; an IPv6-only client cannot reach it. A request body above 4.5 MB is refused by the hosting layer before it reaches CronMissed, so send at most the last 100 kB.
Create a check, copy its ping URL into the job, and watch the first ping arrive.
Start monitoring