{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-krun-pools-response-schema.json",
  "title": "KrunPoolsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-krun-api-openapi.yml#/components/schemas/KrunPoolsResponse",
  "properties": {
    "pools": {
      "items": {
        "$ref": "#/$defs/KrunPool"
      },
      "type": "array",
      "title": "Pools"
    },
    "cluster": {
      "type": "string",
      "title": "Cluster"
    },
    "timestamp": {
      "type": "string",
      "title": "Timestamp"
    }
  },
  "type": "object",
  "required": [
    "pools",
    "cluster",
    "timestamp"
  ],
  "$defs": {
    "KrunPool": {
      "properties": {
        "compute_class": {
          "type": "string",
          "title": "Compute Class"
        },
        "nodes": {
          "items": {
            "$ref": "#/$defs/KrunPoolNode"
          },
          "type": "array",
          "title": "Nodes"
        },
        "pending_pod_count": {
          "type": "integer",
          "title": "Pending Pod Count"
        }
      },
      "type": "object",
      "required": [
        "compute_class",
        "nodes",
        "pending_pod_count"
      ],
      "title": "KrunPool"
    },
    "KrunPoolNode": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "node_pool": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Node Pool"
        },
        "machine_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Machine Type"
        },
        "ready": {
          "type": "boolean",
          "title": "Ready"
        },
        "unschedulable": {
          "type": "boolean",
          "title": "Unschedulable"
        },
        "cpu_allocatable_millis": {
          "type": "number",
          "title": "Cpu Allocatable Millis"
        },
        "cpu_requested_millis": {
          "type": "number",
          "title": "Cpu Requested Millis"
        },
        "memory_allocatable_bytes": {
          "type": "number",
          "title": "Memory Allocatable Bytes"
        },
        "memory_requested_bytes": {
          "type": "number",
          "title": "Memory Requested Bytes"
        },
        "pod_count": {
          "type": "integer",
          "title": "Pod Count"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "pods": {
          "items": {
            "$ref": "#/$defs/KrunPoolPod"
          },
          "type": "array",
          "title": "Pods"
        }
      },
      "type": "object",
      "required": [
        "name",
        "node_pool",
        "machine_type",
        "ready",
        "unschedulable",
        "cpu_allocatable_millis",
        "cpu_requested_millis",
        "memory_allocatable_bytes",
        "memory_requested_bytes",
        "pod_count",
        "created_at",
        "pods"
      ],
      "title": "KrunPoolNode"
    },
    "KrunPoolPod": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "namespace": {
          "type": "string",
          "title": "Namespace"
        },
        "xid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Xid"
        },
        "experiment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Experiment"
        },
        "phase": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Phase"
        },
        "cpu_requested_millis": {
          "type": "number",
          "title": "Cpu Requested Millis"
        },
        "memory_requested_bytes": {
          "type": "number",
          "title": "Memory Requested Bytes"
        }
      },
      "type": "object",
      "required": [
        "name",
        "namespace",
        "xid",
        "experiment",
        "phase",
        "cpu_requested_millis",
        "memory_requested_bytes"
      ],
      "title": "KrunPoolPod"
    }
  }
}