API · v1.4.0
Push
4 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
GET /push/{token}
Report a heartbeat or a successful cron run
Push monitors: status is up (the default) or down; a reported down skips the retries. msg is stored as the result message (longer than 200 characters is cut). ping is the latency in milliseconds; anything but a non-negative integer is ignored. Cron monitors: records the run as up, with the time since its start as latency.
Parameters
| Name | In | Type |
|---|---|---|
tokenrequired | path | string |
status | query | string |
Responses
200
GET /push/{token}/fail
Report a failure
Records a down that skips the retries, with msg appended to the message when given.
Parameters
| Name | In | Type |
|---|---|---|
tokenrequired | path | string |
Responses
200
GET /push/{token}/start
Report that a cron run has started
Records nothing; the run's duration is measured from here and its maximum runtime is enforced.
Parameters
| Name | In | Type |
|---|---|---|
tokenrequired | path | string |
Responses
200
GET /push/{token}/{exitCode}
Report a finished cron run by its exit code
Exit code 0 records the run as up; 1 to 255 record a down that skips the retries.
Parameters
| Name | In | Type |
|---|---|---|
tokenrequired | path | string |
exitCoderequired | path | string |
Responses
200