{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-cluster-forecast-response-schema.json",
  "title": "ClusterForecastResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-m42-api-openapi.yml#/components/schemas/ClusterForecastResponse",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid",
      "title": "Workspace Id"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/ClusterForecastPointRow"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "type": "object",
  "required": [
    "workspace_id",
    "count",
    "items"
  ],
  "$defs": {
    "ClusterForecastPointRow": {
      "properties": {
        "workspace_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "string",
              "const": "labs"
            }
          ],
          "title": "Workspace Id"
        },
        "cluster_name": {
          "type": "string",
          "title": "Cluster Name"
        },
        "focus_area": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Focus Area"
        },
        "t": {
          "type": "number",
          "title": "T"
        },
        "median": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Median"
        },
        "lower_95": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lower 95"
        },
        "upper_95": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Upper 95"
        },
        "observed": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Observed"
        },
        "ym": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ym"
        },
        "is_historical": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Historical"
        }
      },
      "type": "object",
      "required": [
        "workspace_id",
        "cluster_name",
        "t"
      ],
      "title": "ClusterForecastPointRow"
    }
  }
}