{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpoz-ai/json-schema/xpoz-ai-health-status-schema.json",
  "title": "HealthStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xpoz-ai-platform-api-openapi.yml#/components/schemas/HealthStatus",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "healthy",
        "degraded",
        "unhealthy"
      ]
    },
    "version": {
      "type": "string"
    },
    "uptime": {
      "type": "number",
      "description": "Seconds."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "dependencies": {
      "type": "object",
      "properties": {
        "singlestore": {
          "$ref": "#/$defs/ServiceHealth"
        }
      },
      "required": [
        "singlestore"
      ]
    }
  },
  "required": [
    "status",
    "version",
    "uptime",
    "timestamp",
    "dependencies"
  ],
  "$defs": {
    "ServiceHealth": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "healthy",
            "degraded",
            "unhealthy"
          ]
        },
        "responseTime": {
          "type": "number"
        },
        "error": {
          "type": "string"
        }
      },
      "required": [
        "status"
      ]
    }
  }
}