Get SLA dashboard

View as markdown
GET /sla/dashboard

Retrieve SLA metrics and status. Available for Startup tier and above.

Includes:

  • Current uptime percentage
  • Response time metrics (P50, P95, P99)
  • Incident history
  • Compliance status

Responses

  • 200 application/json

    SLA dashboard data

    Hide response attributes Show response attributes object
    • tier string
    • sla_target number

      Target uptime percentage

    • current_uptime number

      Current month uptime

    • response_times object
      Hide response_times attributes Show response_times attributes object
      • p50 integer

        50th percentile response time (ms)

      • p95 integer

        95th percentile response time (ms)

      • p99 integer

        99th percentile response time (ms)

    • incidents array[object]
      Hide incidents attributes Show incidents attributes object
      • id string
      • start_time string(date-time)
      • end_time string(date-time)
      • impact string

        Values are low, medium, high, or critical.

      • resolved boolean
  • 401 application/json

    Unauthorized - invalid or missing API key

    Hide response attributes Show response attributes object
    • status string
    • message string
    • code string
    • details object | null
  • 403 application/json

    SLA monitoring not available for your tier

    Hide response attributes Show response attributes object
    • status string
    • message string
    • code string
    • details object | null
GET /sla/dashboard
curl \
 --request GET 'https://zenux-api.redglacier-fb4abe56.southafricanorth.azurecontainerapps.io/sla/dashboard' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "tier": "startup",
  "sla_target": 99.0,
  "current_uptime": 99.92,
  "response_times": {
    "p50": 150,
    "p95": 380,
    "p99": 520
  },
  "incidents": [
    {
      "id": "string",
      "start_time": "2025-05-04T09:42:00Z",
      "end_time": "2025-05-04T09:42:00Z",
      "impact": "low",
      "resolved": true
    }
  ]
}
Response examples (401)
{
  "code": "UNAUTHORIZED",
  "status": "error",
  "message": "Invalid API key"
}
Response examples (403)
{
  "status": "error",
  "message": "Invalid model specified",
  "code": "INVALID_MODEL",
  "details": {}
}