REST API áttekintés

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évHelyTípus
tokenkötelezőpathstring
statusquerystring

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évHelyTípus
tokenkötelezőpathstring

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évHelyTípus
tokenkötelezőpathstring

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évHelyTípus
tokenkötelezőpathstring
exitCodekötelezőpathstring

Válaszok

  • 200