{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/couchbase/main/json-schema/couchbase-analytics-cluster-status-schema.json",
  "title": "AnalyticsClusterStatus",
  "description": "Analytics cluster status information",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/couchbase-analytics-admin-api-openapi.yml#/components/schemas/AnalyticsClusterStatus",
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "description": "Overall state of the Analytics cluster",
      "enum": [
        "ACTIVE",
        "UNUSABLE",
        "RECOVERING"
      ]
    },
    "nodes": {
      "type": "array",
      "description": "List of Analytics nodes and their states",
      "items": {
        "type": "object",
        "properties": {
          "nodeId": {
            "type": "string",
            "description": "Node identifier"
          },
          "state": {
            "type": "string",
            "description": "State of the individual node"
          },
          "partitions": {
            "type": "array",
            "description": "Data partitions on the node",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}