Auto-provisioning
Every project has a secret ping key. With it, a job can ping a check by its slug instead of its UUID, so the URL can be written from the job's name.
https://staging.crony.sh/ping/<ping key>/nightly-backupOwners and managers find the ping key in the project's settings, and can replace it there. Slug URLs with the old key then stop working.
Slug URLs take the same endings as UUID URLs: /start, /fail, /log and an exit status. A slug may contain lowercase letters, digits, hyphens and underscores, up to 100 characters, and is unique within its project.
Create on first ping
Add create=1, and a ping to a slug the project does not have yet creates the check. The answer is 201 Created the first time and 200 OK after that. Without create=1, an unknown slug answers 404 not found.
curl -fsS -m 10 --retry 5 -o /dev/null "https://staging.crony.sh/ping/<ping key>/nightly-backup?create=1"The new check is named after its slug and starts with these settings:
- a period of one day,
- one hour of grace time,
- every integration in the project.
Change the schedule afterwards in the dashboard or through the management API. If the account is at its plan's check limit, the ping answers 403 check limit reached and no check is created.
This suits fleets of machines and containers that start with a name but no check of their own: each one pings its own slug and appears in the project on its first run.