Health and the document
The health endpoint a supervisor or load balancer polls, and the OpenAPI document these pages are drawn from.
Health
raaqeb health, the container image's health check and the installer all ask this. See health, restarts and logs for what happens when it fails.
GET/health
Liveness of the database and scheduler
Responses
| Status | Answer |
|---|---|
200 | The database answered and the scheduler ticked, or the install is in onboarding. |
503 | The database did not answer or the scheduler's last tick is stale. |
{
// Always true in onboarding.
ok: true;
// The install is in onboarding: no database is open yet.
onboarding: true;
} | {
// Whether the database answered one question.
database: "ok" | "unreachable";
// Whether the database and the scheduler are both ok.
ok: boolean;
// Whether the scheduler's last tick is under two minutes old.
scheduler: "ok" | "stale";
}{
// Always true in onboarding.
ok: true;
// The install is in onboarding: no database is open yet.
onboarding: true;
} | {
// Whether the database answered one question.
database: "ok" | "unreachable";
// Whether the database and the scheduler are both ok.
ok: boolean;
// Whether the scheduler's last tick is under two minutes old.
scheduler: "ok" | "stale";
}The OpenAPI document
GET/api/openapi.json
The OpenAPI document
Responses
| Status | Answer |
|---|---|
200 | This document, OpenAPI 3.1, cached for an hour: it changes only with the binary. Body: application/json object. |