Files
dashback/docs/api/routes/health/latency.md
2026-10-19 01:50:32 +02:00

887 B

GET /health/latency

Protected. Requires a valid session cookie (credentials: 'include').

Health latency history

Returns the database healthcheck latency (ms) as three series, each oldest first with unix-ms timestamps. raw holds the per-minute samples of the last 3 hours; avg and max hold the 30-minute aggregates (over the last 4 hours of samples) kept for 30 days. Requires a valid JWT; no company selection needed.

Response 200

Latency series

{
  "raw": [
    {
      "timestamp": 1,
      "value": 1
    }
  ],
  "avg": [
    {
      "timestamp": 1,
      "value": 1
    }
  ],
  "max": [
    {
      "timestamp": 1,
      "value": 1
    }
  ]
}

Errors

Status Description
401 Unauthorized
500 Redis read failed

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.