System

Readiness (database)

Changed on

Whether the database answered a read just now. 200 when it did, 503 when it did not or took longer than three seconds, so an uptime monitor can read the answer from the status code alone. A result is reused for up to ten seconds, and checked_at says when it was taken. No authentication required.

get/api/health/ready

Request

  • Base URL
    https://api.prereason.com
  • Auth
    none required

Response

The database answered

status'ok'
database'ok'
latency_msinteger
checked_atstring date-time

Example response

{
  "latency_ms": 38
}

Changes