{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serpkite-com/json-schema/serpkite-com-status-schema.json",
  "title": "Status",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serpkite-com-status-api-openapi.yml#/components/schemas/Status",
  "type": "object",
  "required": [
    "status",
    "window_minutes",
    "endpoints",
    "updated_at"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "operational",
        "degraded"
      ]
    },
    "window_minutes": {
      "type": "integer"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "endpoint",
          "requests",
          "success_rate",
          "p50_ms",
          "p95_ms"
        ],
        "properties": {
          "endpoint": {
            "type": "string"
          },
          "requests": {
            "type": "integer"
          },
          "success_rate": {
            "type": "number",
            "description": "Share of requests without a 5xx (0-1)"
          },
          "p50_ms": {
            "type": "integer",
            "description": "Median latency of successful (non-error) responses; 0 when none succeeded"
          },
          "p95_ms": {
            "type": "integer",
            "description": "95th-percentile latency of successful (non-error) responses; 0 when none succeeded"
          }
        }
      }
    }
  }
}