GET
/readyNo key needed
Returns 200 when the database, the job queue and the validator all answer, and 503 when one of them does not. No credential is needed. Each check is up, down, or absent when this deployment runs without that part, which is not a failure. Each is given 3 seconds, and all three are asked at once. The answer never says why a part is down.
Response
A 200 answer carries these fields.
- statusstringRequiredOne of
ready,not_ready. - checksobjectRequired
Show 3 child fields
- databasestringRequiredOne of
up,down,absent. - queuestringRequiredOne of
up,down,absent. - validatorstringRequiredOne of
up,down,absent.
Status codes
| Status | Meaning |
|---|---|
200 |
Every part this deployment has is answering. |
503 |
At least one part is down. |
GET
/readyExample
curl https://api.certinvo.com/readyconst response = await fetch(`https://api.certinvo.com/ready`, {
})
console.log(response.status, await response.json())import requests
response = requests.get(
"https://api.certinvo.com/ready",
)
print(response.status_code, response.text)200
application/json
{
"status": "ready",
"checks": {
"database": "up",
"queue": "up",
"validator": "up"
}
}Success response