{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricefeed-online/json-schema/pricefeed-online-status-schema.json",
  "title": "Status",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricefeed-online-openapi.yaml#/components/schemas/Status",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "operational",
        "degraded",
        "partial_outage",
        "outage"
      ]
    },
    "sources": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "cache": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "driver": {
          "type": "string"
        }
      }
    },
    "metrics": {
      "type": "object",
      "properties": {
        "window_days": {
          "type": "integer"
        },
        "latency_p50_ms": {
          "type": [
            "integer",
            "null"
          ]
        },
        "latency_p99_ms": {
          "type": [
            "integer",
            "null"
          ]
        },
        "uptime_pct": {
          "type": [
            "number",
            "null"
          ]
        },
        "sources_online": {
          "type": "integer"
        },
        "sources_total": {
          "type": "integer"
        },
        "data_fresh_pct": {
          "type": [
            "number",
            "null"
          ]
        },
        "cache_status": {
          "type": "string"
        }
      }
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}