{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-health-response-schema.json",
  "title": "HealthResponse",
  "description": "Response for GET /health.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-health-api-openapi.yml#/components/schemas/HealthResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status"
    },
    "uptime_s": {
      "type": "number",
      "title": "Uptime S"
    },
    "task_count": {
      "type": "integer",
      "title": "Task Count"
    },
    "agent_count": {
      "type": "integer",
      "title": "Agent Count"
    },
    "task_queue_depth": {
      "type": "integer",
      "title": "Task Queue Depth",
      "default": 0
    },
    "memory_mb": {
      "type": "number",
      "title": "Memory Mb",
      "default": 0
    },
    "restart_count": {
      "type": "integer",
      "title": "Restart Count",
      "default": 0
    },
    "is_readonly": {
      "type": "boolean",
      "title": "Is Readonly",
      "default": false
    },
    "components": {
      "additionalProperties": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "object",
      "title": "Components"
    }
  },
  "type": "object",
  "required": [
    "status",
    "uptime_s",
    "task_count",
    "agent_count"
  ]
}