{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cockroach-labs/json-schema/cockroach-labs-cluster-disruption-info-schema.json",
  "title": "ClusterDisruptionInfo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cockroach-labs-cluster-disruption-api-openapi.yml#/components/schemas/ClusterDisruptionInfo",
  "type": "object",
  "properties": {
    "regional_disruptor_specifications": {
      "description": "regional_disruptor_specifications represents a region that is disrupted.\nIf there are no entries, it means the cluster is not disrupted.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/RegionalDisruptorSpecification"
      }
    }
  },
  "required": [
    "regional_disruptor_specifications"
  ],
  "$defs": {
    "RegionalDisruptorSpecification": {
      "description": "RegionalDisruptorSpecification represents how a region is disrupted. To\nreduce ambiguity, a RegionalDisruptorSpecification should not represent a\nhealthy cluster - there should be at least some disrupted pods.",
      "type": "object",
      "properties": {
        "azs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "azs represents each availability zone that should be disrupted. The AZs for\na cluster can be found in the db-console under the Advanced Debug -\nLocalities section. The AZ should not include the cloud provider name\nprefix.  (i.e. us-east1-a)"
        },
        "is_whole_region": {
          "description": "is_whole_region denotes whether the whole region should be disrupted.  If a\nspecific pod or az is passed, this value should be false.",
          "type": "boolean"
        },
        "pods": {
          "description": "pods represents each individual CRDB pod name that should be disrupted.\nPod names can be found using the\n[ListClusterNodes api](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/nodes).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "region_code": {
          "description": "region_code is the cloud provider specific region code of the region. (i.e\nus-east1 for gcp, us-east-1 for aws, eastus for azure). Region names for\neach node the cluster can be found using the\n[ListClusterNodes api](https://www.cockroachlabs.com/docs/api/cloud/v1#get-/api/v1/clusters/-cluster_id-/nodes).",
          "type": "string"
        }
      },
      "required": [
        "region_code",
        "is_whole_region"
      ]
    }
  }
}