API · v1.4.0
Push
4 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
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.
Paraméterek
| Név | Hely | Típus |
|---|---|---|
tokenkötelező | path | string |
status | query | string |
Válaszok
200
GET /push/{token}/fail
Report a failure
Records a down that skips the retries, with msg appended to the message when given.
Paraméterek
| Név | Hely | Típus |
|---|---|---|
tokenkötelező | path | string |
Válaszok
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.
Paraméterek
| Név | Hely | Típus |
|---|---|---|
tokenkötelező | path | string |
Válaszok
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.
Paraméterek
| Név | Hely | Típus |
|---|---|---|
tokenkötelező | path | string |
exitCodekötelező | path | string |
Válaszok
200