{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-cluster-stats-stats-response-base-schema.json",
  "title": "cluster.stats.StatsResponseBase",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-cluster-api-openapi.yml#/components/schemas/cluster.stats.StatsResponseBase",
  "allOf": [
    {
      "$ref": "#/$defs/nodes._types.NodesResponseBase"
    },
    {
      "type": "object",
      "properties": {
        "cluster_name": {
          "description": "Name of the cluster, based on the cluster name setting.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Name"
            }
          ]
        },
        "cluster_uuid": {
          "description": "Unique identifier for the cluster.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Uuid"
            }
          ]
        },
        "indices": {
          "description": "Contains statistics about indices with shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterIndices"
            }
          ]
        },
        "nodes": {
          "description": "Contains statistics about nodes selected by the request’s node filters.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterNodes"
            }
          ]
        },
        "repositories": {
          "description": "Contains stats on repository feature usage exposed in cluster stats for telemetry.",
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "snapshots": {
          "description": "Contains stats cluster snapshots.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterSnapshotStats"
            }
          ]
        },
        "status": {
          "description": "Health status of the cluster, based on the state of its primary and replica shards.\n\nSupported values include:\n  - `green` (or `GREEN`): All shards are assigned.\n  - `yellow` (or `YELLOW`): All primary shards are assigned, but one or more replica shards are unassigned. If a node in the cluster fails, some data could be unavailable until that node is repaired.\n  - `red` (or `RED`): One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned.\n  - `unknown`\n  - `unavailable`\n\n",
          "allOf": [
            {
              "$ref": "#/$defs/_types.HealthStatus"
            }
          ]
        },
        "timestamp": {
          "description": "Unix timestamp, in milliseconds, for the last time the cluster statistics were refreshed.",
          "type": "number"
        },
        "ccs": {
          "description": "Cross-cluster stats",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSStats"
            }
          ]
        }
      },
      "required": [
        "cluster_name",
        "cluster_uuid",
        "indices",
        "nodes",
        "repositories",
        "snapshots",
        "timestamp",
        "ccs"
      ]
    }
  ],
  "$defs": {
    "_types.ByteSize": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "_types.CompletionStats": {
      "type": "object",
      "properties": {
        "size_in_bytes": {
          "description": "Total amount, in bytes, of memory used for completion across all shards assigned to selected nodes.",
          "type": "number"
        },
        "size": {
          "description": "Total amount of memory used for completion across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.FieldSizeUsage"
          }
        }
      },
      "required": [
        "size_in_bytes"
      ]
    },
    "_types.DateFormat": {
      "type": "string"
    },
    "_types.DocStats": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Total number of non-deleted documents across all primary shards assigned to selected nodes.\nThis number is based on documents in Lucene segments and may include documents from nested fields.",
          "type": "number"
        },
        "deleted": {
          "description": "Total number of deleted documents across all primary shards assigned to selected nodes.\nThis number is based on documents in Lucene segments.\nElasticsearch reclaims the disk space of deleted Lucene documents when a segment is merged.",
          "type": "number"
        },
        "total_size_in_bytes": {
          "description": "Returns the total size in bytes of all documents in this stats.\nThis value may be more reliable than store_stats.size_in_bytes in estimating the index size.",
          "type": "number"
        },
        "total_size": {
          "description": "Human readable total_size_in_bytes",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        }
      },
      "required": [
        "count",
        "total_size_in_bytes"
      ]
    },
    "_types.Duration": {
      "description": "A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and\n`d` (days). Also accepts \"0\" without a unit and \"-1\" to indicate an unspecified value.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "string",
          "enum": [
            "-1"
          ]
        },
        {
          "type": "string",
          "enum": [
            "0"
          ]
        }
      ]
    },
    "_types.DurationValueUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.ErrorCause": {
      "description": "Cause and details about a request failure. This class defines the properties common to all error types.\nAdditional details are also provided, that depend on the error type.",
      "type": "object",
      "properties": {
        "type": {
          "description": "The type of error",
          "type": "string"
        },
        "reason": {
          "description": "A human-readable explanation of the error, in English.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "stack_trace": {
          "description": "The server stack trace. Present only if the `error_trace=true` parameter was sent with the request.",
          "type": "string"
        },
        "caused_by": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ErrorCause"
            }
          ]
        },
        "root_cause": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.ErrorCause"
          }
        },
        "suppressed": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.ErrorCause"
          }
        }
      },
      "required": [
        "type"
      ]
    },
    "_types.FieldMemoryUsage": {
      "type": "object",
      "properties": {
        "memory_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "memory_size_in_bytes": {
          "type": "number"
        }
      },
      "required": [
        "memory_size_in_bytes"
      ]
    },
    "_types.FieldSizeUsage": {
      "type": "object",
      "properties": {
        "size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "size_in_bytes": {
          "type": "number"
        }
      },
      "required": [
        "size_in_bytes"
      ]
    },
    "_types.FielddataStats": {
      "type": "object",
      "properties": {
        "evictions": {
          "type": "number"
        },
        "memory_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "memory_size_in_bytes": {
          "type": "number"
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.FieldMemoryUsage"
          }
        },
        "global_ordinals": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GlobalOrdinalsStats"
            }
          ]
        }
      },
      "required": [
        "memory_size_in_bytes",
        "global_ordinals"
      ]
    },
    "_types.GlobalOrdinalFieldStats": {
      "type": "object",
      "properties": {
        "build_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.UnitMillis"
            }
          ]
        },
        "build_time": {
          "type": "string"
        },
        "shard_max_value_count": {
          "type": "number"
        }
      },
      "required": [
        "build_time_in_millis",
        "shard_max_value_count"
      ]
    },
    "_types.GlobalOrdinalsStats": {
      "type": "object",
      "properties": {
        "build_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.UnitMillis"
            }
          ]
        },
        "build_time": {
          "type": "string"
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.GlobalOrdinalFieldStats"
          }
        }
      },
      "required": [
        "build_time_in_millis"
      ]
    },
    "_types.HealthStatus": {
      "type": "string",
      "enum": [
        "green",
        "GREEN",
        "yellow",
        "YELLOW",
        "red",
        "RED",
        "unknown",
        "unavailable"
      ]
    },
    "_types.Name": {
      "type": "string"
    },
    "_types.NodeStatistics": {
      "description": "Contains statistics about the number of nodes selected by the request.",
      "type": "object",
      "properties": {
        "failures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.ErrorCause"
          }
        },
        "total": {
          "description": "Total number of nodes selected by the request.",
          "type": "number"
        },
        "successful": {
          "description": "Number of nodes that responded successfully to the request.",
          "type": "number"
        },
        "failed": {
          "description": "Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response.",
          "type": "number"
        }
      },
      "required": [
        "total",
        "successful",
        "failed"
      ]
    },
    "_types.PluginStats": {
      "type": "object",
      "properties": {
        "classname": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "elasticsearch_version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionString"
            }
          ]
        },
        "extended_plugins": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "has_native_controller": {
          "type": "boolean"
        },
        "java_version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionString"
            }
          ]
        },
        "name": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Name"
            }
          ]
        },
        "version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionString"
            }
          ]
        },
        "licensed": {
          "type": "boolean"
        }
      },
      "required": [
        "classname",
        "description",
        "elasticsearch_version",
        "extended_plugins",
        "has_native_controller",
        "java_version",
        "name",
        "version",
        "licensed"
      ]
    },
    "_types.QueryCacheStats": {
      "type": "object",
      "properties": {
        "cache_count": {
          "description": "Total number of entries added to the query cache across all shards assigned to selected nodes.\nThis number includes current and evicted entries.",
          "type": "number"
        },
        "cache_size": {
          "description": "Total number of entries currently in the query cache across all shards assigned to selected nodes.",
          "type": "number"
        },
        "evictions": {
          "description": "Total number of query cache evictions across all shards assigned to selected nodes.",
          "type": "number"
        },
        "hit_count": {
          "description": "Total count of query cache hits across all shards assigned to selected nodes.",
          "type": "number"
        },
        "memory_size": {
          "description": "Total amount of memory used for the query cache across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "memory_size_in_bytes": {
          "description": "Total amount, in bytes, of memory used for the query cache across all shards assigned to selected nodes.",
          "type": "number"
        },
        "miss_count": {
          "description": "Total count of query cache misses across all shards assigned to selected nodes.",
          "type": "number"
        },
        "total_count": {
          "description": "Total count of hits and misses in the query cache across all shards assigned to selected nodes.",
          "type": "number"
        }
      },
      "required": [
        "cache_count",
        "cache_size",
        "evictions",
        "hit_count",
        "memory_size_in_bytes",
        "miss_count",
        "total_count"
      ]
    },
    "_types.SegmentsStats": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Total number of segments across all shards assigned to selected nodes.",
          "type": "number"
        },
        "doc_values_memory": {
          "description": "Total amount of memory used for doc values across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "doc_values_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for doc values across all shards assigned to selected nodes.",
          "type": "number"
        },
        "file_sizes": {
          "description": "This object is not populated by the cluster stats API.\nTo get information on segment files, use the node stats API.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/indices.stats.ShardFileSizeInfo"
          }
        },
        "fixed_bit_set": {
          "description": "Total amount of memory used by fixed bit sets across all shards assigned to selected nodes.\nFixed bit sets are used for nested object field types and type filters for join fields.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "fixed_bit_set_memory_in_bytes": {
          "description": "Total amount of memory, in bytes, used by fixed bit sets across all shards assigned to selected nodes.",
          "type": "number"
        },
        "index_writer_memory": {
          "description": "Total amount of memory used by all index writers across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "index_writer_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used by all index writers across all shards assigned to selected nodes.",
          "type": "number"
        },
        "max_unsafe_auto_id_timestamp": {
          "description": "Unix timestamp, in milliseconds, of the most recently retried indexing request.",
          "type": "number"
        },
        "memory": {
          "description": "Total amount of memory used for segments across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for segments across all shards assigned to selected nodes.",
          "type": "number"
        },
        "norms_memory": {
          "description": "Total amount of memory used for normalization factors across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "norms_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for normalization factors across all shards assigned to selected nodes.",
          "type": "number"
        },
        "points_memory": {
          "description": "Total amount of memory used for points across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "points_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for points across all shards assigned to selected nodes.",
          "type": "number"
        },
        "stored_fields_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for stored fields across all shards assigned to selected nodes.",
          "type": "number"
        },
        "stored_fields_memory": {
          "description": "Total amount of memory used for stored fields across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "terms_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for terms across all shards assigned to selected nodes.",
          "type": "number"
        },
        "terms_memory": {
          "description": "Total amount of memory used for terms across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "term_vectors_memory": {
          "description": "Total amount of memory used for term vectors across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "term_vectors_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used for term vectors across all shards assigned to selected nodes.",
          "type": "number"
        },
        "version_map_memory": {
          "description": "Total amount of memory used by all version maps across all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "version_map_memory_in_bytes": {
          "description": "Total amount, in bytes, of memory used by all version maps across all shards assigned to selected nodes.",
          "type": "number"
        }
      },
      "required": [
        "count",
        "doc_values_memory_in_bytes",
        "file_sizes",
        "fixed_bit_set_memory_in_bytes",
        "index_writer_memory_in_bytes",
        "max_unsafe_auto_id_timestamp",
        "memory_in_bytes",
        "norms_memory_in_bytes",
        "points_memory_in_bytes",
        "stored_fields_memory_in_bytes",
        "terms_memory_in_bytes",
        "term_vectors_memory_in_bytes",
        "version_map_memory_in_bytes"
      ]
    },
    "_types.StoreStats": {
      "type": "object",
      "properties": {
        "size": {
          "description": "Total size of all shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "size_in_bytes": {
          "description": "Total size, in bytes, of all shards assigned to selected nodes.",
          "type": "number"
        },
        "reserved": {
          "description": "A prediction of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "reserved_in_bytes": {
          "description": "A prediction, in bytes, of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities.",
          "type": "number"
        },
        "total_data_set_size": {
          "description": "Total data set size of all shards assigned to selected nodes.\nThis includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_data_set_size_in_bytes": {
          "description": "Total data set size, in bytes, of all shards assigned to selected nodes.\nThis includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices.",
          "type": "number"
        }
      },
      "required": [
        "size_in_bytes",
        "reserved_in_bytes"
      ]
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    },
    "_types.Uuid": {
      "type": "string"
    },
    "_types.VersionString": {
      "type": "string"
    },
    "cluster.stats.CCSStats": {
      "type": "object",
      "properties": {
        "clusters": {
          "description": "Contains remote cluster settings and metrics collected from them.\nThe keys are cluster names, and the values are per-cluster data.\nOnly present if `include_remotes` option is set to true.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/cluster.stats.RemoteClusterInfo"
          }
        },
        "_search": {
          "description": "Information about cross-cluster search usage.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSUsageStats"
            }
          ]
        },
        "_esql": {
          "description": "Information about ES|QL cross-cluster query usage.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSUsageStats"
            }
          ]
        }
      },
      "required": [
        "_search"
      ]
    },
    "cluster.stats.CCSUsageClusterStats": {
      "type": "object",
      "properties": {
        "total": {
          "description": "The total number of successful (not skipped) cross-cluster search requests that were executed against this cluster. This may include requests where partial results were returned, but not requests in which the cluster has been skipped entirely.",
          "type": "number"
        },
        "skipped": {
          "description": "The total number of cross-cluster search requests for which this cluster was skipped.",
          "type": "number"
        },
        "took": {
          "description": "Statistics about the time taken to execute requests against this cluster.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSUsageTimeValue"
            }
          ]
        }
      },
      "required": [
        "total",
        "skipped",
        "took"
      ]
    },
    "cluster.stats.CCSUsageStats": {
      "type": "object",
      "properties": {
        "total": {
          "description": "The total number of cross-cluster search requests that have been executed by the cluster.",
          "type": "number"
        },
        "success": {
          "description": "The total number of cross-cluster search requests that have been successfully executed by the cluster.",
          "type": "number"
        },
        "skipped": {
          "description": "The total number of cross-cluster search requests (successful or failed) that had at least one remote cluster skipped.",
          "type": "number"
        },
        "took": {
          "description": "Statistics about the time taken to execute cross-cluster search requests.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSUsageTimeValue"
            }
          ]
        },
        "took_mrt_true": {
          "description": "Statistics about the time taken to execute cross-cluster search requests for which the `ccs_minimize_roundtrips` setting was set to `true`.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSUsageTimeValue"
            }
          ]
        },
        "took_mrt_false": {
          "description": "Statistics about the time taken to execute cross-cluster search requests for which the `ccs_minimize_roundtrips` setting was set to `false`.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CCSUsageTimeValue"
            }
          ]
        },
        "remotes_per_search_max": {
          "description": "The maximum number of remote clusters that were queried in a single cross-cluster search request.",
          "type": "number"
        },
        "remotes_per_search_avg": {
          "description": "The average number of remote clusters that were queried in a single cross-cluster search request.",
          "type": "number"
        },
        "failure_reasons": {
          "description": "Statistics about the reasons for cross-cluster search request failures. The keys are the failure reason names and the values are the number of requests that failed for that reason.",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "features": {
          "description": "The keys are the names of the search feature, and the values are the number of requests that used that feature. Single request can use more than one feature (e.g. both `async` and `wildcard`).",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "clients": {
          "description": "Statistics about the clients that executed cross-cluster search requests. The keys are the names of the clients, and the values are the number of requests that were executed by that client. Only known clients (such as `kibana` or `elasticsearch`) are counted.",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "clusters": {
          "description": "Statistics about the clusters that were queried in cross-cluster search requests. The keys are cluster names, and the values are per-cluster telemetry data. This also includes the local cluster itself, which uses the name `(local)`.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/cluster.stats.CCSUsageClusterStats"
          }
        }
      },
      "required": [
        "total",
        "success",
        "skipped",
        "took",
        "remotes_per_search_max",
        "remotes_per_search_avg",
        "failure_reasons",
        "features",
        "clients",
        "clusters"
      ]
    },
    "cluster.stats.CCSUsageTimeValue": {
      "type": "object",
      "properties": {
        "max": {
          "description": "The maximum time taken to execute a request, in milliseconds.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "avg": {
          "description": "The average time taken to execute a request, in milliseconds.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "p90": {
          "description": "The 90th percentile of the time taken to execute requests, in milliseconds.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "max",
        "avg",
        "p90"
      ]
    },
    "cluster.stats.CharFilterTypes": {
      "type": "object",
      "properties": {
        "analyzer_types": {
          "description": "Contains statistics about analyzer types used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "built_in_analyzers": {
          "description": "Contains statistics about built-in analyzers used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "built_in_char_filters": {
          "description": "Contains statistics about built-in character filters used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "built_in_filters": {
          "description": "Contains statistics about built-in token filters used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "built_in_tokenizers": {
          "description": "Contains statistics about built-in tokenizers used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "char_filter_types": {
          "description": "Contains statistics about character filter types used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "filter_types": {
          "description": "Contains statistics about token filter types used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "tokenizer_types": {
          "description": "Contains statistics about tokenizer types used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "synonyms": {
          "description": "Contains statistics about synonyms types used in selected nodes.",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/cluster.stats.SynonymsStats"
          }
        }
      },
      "required": [
        "analyzer_types",
        "built_in_analyzers",
        "built_in_char_filters",
        "built_in_filters",
        "built_in_tokenizers",
        "char_filter_types",
        "filter_types",
        "tokenizer_types",
        "synonyms"
      ]
    },
    "cluster.stats.ClusterFileSystem": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "mount": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "available_in_bytes": {
          "description": "Total number of bytes available to JVM in file stores across all selected nodes.\nDepending on operating system or process-level restrictions, this number may be less than `nodes.fs.free_in_byes`.\nThis is the actual amount of free disk space the selected Elasticsearch nodes can use.",
          "type": "number"
        },
        "available": {
          "description": "Total number of bytes available to JVM in file stores across all selected nodes.\nDepending on operating system or process-level restrictions, this number may be less than `nodes.fs.free_in_byes`.\nThis is the actual amount of free disk space the selected Elasticsearch nodes can use.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "free_in_bytes": {
          "description": "Total number, in bytes, of unallocated bytes in file stores across all selected nodes.",
          "type": "number"
        },
        "free": {
          "description": "Total number of unallocated bytes in file stores across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_in_bytes": {
          "description": "Total size, in bytes, of all file stores across all selected nodes.",
          "type": "number"
        },
        "total": {
          "description": "Total size of all file stores across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "low_watermark_free_space": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "low_watermark_free_space_in_bytes": {
          "type": "number"
        },
        "high_watermark_free_space": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "high_watermark_free_space_in_bytes": {
          "type": "number"
        },
        "flood_stage_free_space": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "flood_stage_free_space_in_bytes": {
          "type": "number"
        },
        "frozen_flood_stage_free_space": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "frozen_flood_stage_free_space_in_bytes": {
          "type": "number"
        }
      }
    },
    "cluster.stats.ClusterIndices": {
      "type": "object",
      "properties": {
        "analysis": {
          "description": "Contains statistics about analyzers and analyzer components used in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.CharFilterTypes"
            }
          ]
        },
        "completion": {
          "description": "Contains statistics about memory used for completion in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.CompletionStats"
            }
          ]
        },
        "count": {
          "description": "Total number of indices with shards assigned to selected nodes.",
          "type": "number"
        },
        "docs": {
          "description": "Contains counts for documents in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.DocStats"
            }
          ]
        },
        "fielddata": {
          "description": "Contains statistics about the field data cache of selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.FielddataStats"
            }
          ]
        },
        "query_cache": {
          "description": "Contains statistics about the query cache of selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.QueryCacheStats"
            }
          ]
        },
        "search": {
          "description": "Holds a snapshot of the search usage statistics.\nUsed to hold the stats for a single node that's part of a ClusterStatsNodeResponse, as well as to\naccumulate stats for the entire cluster and return them as part of the ClusterStatsResponse.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.SearchUsageStats"
            }
          ]
        },
        "segments": {
          "description": "Contains statistics about segments in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.SegmentsStats"
            }
          ]
        },
        "shards": {
          "description": "Contains statistics about indices with shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterIndicesShards"
            }
          ]
        },
        "store": {
          "description": "Contains statistics about the size of shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.StoreStats"
            }
          ]
        },
        "mappings": {
          "description": "Contains statistics about field mappings in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.FieldTypesMappings"
            }
          ]
        },
        "versions": {
          "description": "Contains statistics about analyzers and analyzer components used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.IndicesVersions"
          }
        },
        "dense_vector": {
          "description": "Contains statistics about indexed dense vector",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.DenseVectorStats"
            }
          ]
        },
        "sparse_vector": {
          "description": "Contains statistics about indexed sparse vector",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.SparseVectorStats"
            }
          ]
        }
      },
      "required": [
        "completion",
        "count",
        "docs",
        "fielddata",
        "query_cache",
        "search",
        "segments",
        "shards",
        "store",
        "dense_vector",
        "sparse_vector"
      ]
    },
    "cluster.stats.ClusterIndicesShards": {
      "description": "Contains statistics about shards assigned to selected nodes.",
      "type": "object",
      "properties": {
        "index": {
          "description": "Contains statistics about shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterIndicesShardsIndex"
            }
          ]
        },
        "primaries": {
          "description": "Number of primary shards assigned to selected nodes.",
          "type": "number"
        },
        "replication": {
          "description": "Ratio of replica shards to primary shards across all selected nodes.",
          "type": "number"
        },
        "total": {
          "description": "Total number of shards assigned to selected nodes.",
          "type": "number"
        }
      }
    },
    "cluster.stats.ClusterIndicesShardsIndex": {
      "type": "object",
      "properties": {
        "primaries": {
          "description": "Contains statistics about the number of primary shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterShardMetrics"
            }
          ]
        },
        "replication": {
          "description": "Contains statistics about the number of replication shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterShardMetrics"
            }
          ]
        },
        "shards": {
          "description": "Contains statistics about the number of shards assigned to selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterShardMetrics"
            }
          ]
        }
      },
      "required": [
        "primaries",
        "replication",
        "shards"
      ]
    },
    "cluster.stats.ClusterIngest": {
      "type": "object",
      "properties": {
        "number_of_pipelines": {
          "type": "number"
        },
        "processor_stats": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/cluster.stats.ClusterProcessor"
          }
        }
      },
      "required": [
        "number_of_pipelines",
        "processor_stats"
      ]
    },
    "cluster.stats.ClusterJvm": {
      "type": "object",
      "properties": {
        "max_uptime_in_millis": {
          "description": "Uptime duration, in milliseconds, since JVM last started.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "max_uptime": {
          "description": "Uptime duration since JVM last started.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "mem": {
          "description": "Contains statistics about memory used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterJvmMemory"
            }
          ]
        },
        "threads": {
          "description": "Number of active threads in use by JVM across all selected nodes.",
          "type": "number"
        },
        "versions": {
          "description": "Contains statistics about the JVM versions used by selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.ClusterJvmVersion"
          }
        }
      },
      "required": [
        "max_uptime_in_millis",
        "mem",
        "threads",
        "versions"
      ]
    },
    "cluster.stats.ClusterJvmMemory": {
      "type": "object",
      "properties": {
        "heap_max_in_bytes": {
          "description": "Maximum amount of memory, in bytes, available for use by the heap across all selected nodes.",
          "type": "number"
        },
        "heap_max": {
          "description": "Maximum amount of memory available for use by the heap across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "heap_used_in_bytes": {
          "description": "Memory, in bytes, currently in use by the heap across all selected nodes.",
          "type": "number"
        },
        "heap_used": {
          "description": "Memory currently in use by the heap across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        }
      },
      "required": [
        "heap_max_in_bytes",
        "heap_used_in_bytes"
      ]
    },
    "cluster.stats.ClusterJvmVersion": {
      "type": "object",
      "properties": {
        "bundled_jdk": {
          "description": "Always `true`. All distributions come with a bundled Java Development Kit (JDK).",
          "type": "boolean"
        },
        "count": {
          "description": "Total number of selected nodes using JVM.",
          "type": "number"
        },
        "using_bundled_jdk": {
          "description": "If `true`, a bundled JDK is in use by JVM.",
          "type": "boolean"
        },
        "version": {
          "description": "Version of JVM used by one or more selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionString"
            }
          ]
        },
        "vm_name": {
          "description": "Name of the JVM.",
          "type": "string"
        },
        "vm_vendor": {
          "description": "Vendor of the JVM.",
          "type": "string"
        },
        "vm_version": {
          "description": "Full version number of JVM.\nThe full version number includes a plus sign (+) followed by the build number.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionString"
            }
          ]
        }
      },
      "required": [
        "bundled_jdk",
        "count",
        "using_bundled_jdk",
        "version",
        "vm_name",
        "vm_vendor",
        "vm_version"
      ]
    },
    "cluster.stats.ClusterNetworkTypes": {
      "type": "object",
      "properties": {
        "http_types": {
          "description": "Contains statistics about the HTTP network types used by selected nodes.",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "transport_types": {
          "description": "Contains statistics about the transport network types used by selected nodes.",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        }
      },
      "required": [
        "http_types",
        "transport_types"
      ]
    },
    "cluster.stats.ClusterNodeCount": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "coordinating_only": {
          "type": "number"
        },
        "data": {
          "type": "number"
        },
        "data_cold": {
          "type": "number"
        },
        "data_content": {
          "type": "number"
        },
        "data_frozen": {
          "x-state": "Generally available; Added in 7.13.0",
          "type": "number"
        },
        "data_hot": {
          "type": "number"
        },
        "data_warm": {
          "type": "number"
        },
        "index": {
          "type": "number"
        },
        "ingest": {
          "type": "number"
        },
        "master": {
          "type": "number"
        },
        "ml": {
          "type": "number"
        },
        "remote_cluster_client": {
          "type": "number"
        },
        "search": {
          "type": "number"
        },
        "transform": {
          "type": "number"
        },
        "voting_only": {
          "type": "number"
        }
      },
      "required": [
        "total"
      ]
    },
    "cluster.stats.ClusterNodes": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Contains counts for nodes selected by the request’s node filters.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterNodeCount"
            }
          ]
        },
        "discovery_types": {
          "description": "Contains statistics about the discovery types used by selected nodes.",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "fs": {
          "description": "Contains statistics about file stores by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterFileSystem"
            }
          ]
        },
        "indexing_pressure": {
          "x-state": "Generally available; Added in 7.16.0",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.IndexingPressure"
            }
          ]
        },
        "ingest": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterIngest"
            }
          ]
        },
        "jvm": {
          "description": "Contains statistics about the Java Virtual Machines (JVMs) used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterJvm"
            }
          ]
        },
        "network_types": {
          "description": "Contains statistics about the transport and HTTP networks used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterNetworkTypes"
            }
          ]
        },
        "os": {
          "description": "Contains statistics about the operating systems used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterOperatingSystem"
            }
          ]
        },
        "packaging_types": {
          "description": "Contains statistics about Elasticsearch distributions installed on selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.NodePackagingType"
          }
        },
        "plugins": {
          "description": "Contains statistics about installed plugins and modules by selected nodes.\nIf no plugins or modules are installed, this array is empty.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.PluginStats"
          }
        },
        "process": {
          "description": "Contains statistics about processes used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterProcess"
            }
          ]
        },
        "versions": {
          "description": "Array of Elasticsearch versions used on selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.VersionString"
          }
        }
      },
      "required": [
        "count",
        "discovery_types",
        "fs",
        "indexing_pressure",
        "ingest",
        "jvm",
        "network_types",
        "os",
        "packaging_types",
        "plugins",
        "process",
        "versions"
      ]
    },
    "cluster.stats.ClusterOperatingSystem": {
      "type": "object",
      "properties": {
        "allocated_processors": {
          "description": "Number of processors used to calculate thread pool size across all selected nodes.\nThis number can be set with the processors setting of a node and defaults to the number of processors reported by the operating system.\nIn both cases, this number will never be larger than 32.",
          "type": "number"
        },
        "architectures": {
          "description": "Contains statistics about processor architectures (for example, x86_64 or aarch64) used by selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.ClusterOperatingSystemArchitecture"
          }
        },
        "available_processors": {
          "description": "Number of processors available to JVM across all selected nodes.",
          "type": "number"
        },
        "mem": {
          "description": "Contains statistics about memory used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.OperatingSystemMemoryInfo"
            }
          ]
        },
        "names": {
          "description": "Contains statistics about operating systems used by selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.ClusterOperatingSystemName"
          }
        },
        "pretty_names": {
          "description": "Contains statistics about operating systems used by selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.ClusterOperatingSystemPrettyName"
          }
        }
      },
      "required": [
        "allocated_processors",
        "available_processors",
        "mem",
        "names",
        "pretty_names"
      ]
    },
    "cluster.stats.ClusterOperatingSystemArchitecture": {
      "type": "object",
      "properties": {
        "arch": {
          "description": "Name of an architecture used by one or more selected nodes.",
          "type": "string"
        },
        "count": {
          "description": "Number of selected nodes using the architecture.",
          "type": "number"
        }
      },
      "required": [
        "arch",
        "count"
      ]
    },
    "cluster.stats.ClusterOperatingSystemName": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Number of selected nodes using the operating system.",
          "type": "number"
        },
        "name": {
          "description": "Name of an operating system used by one or more selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Name"
            }
          ]
        }
      },
      "required": [
        "count",
        "name"
      ]
    },
    "cluster.stats.ClusterOperatingSystemPrettyName": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Number of selected nodes using the operating system.",
          "type": "number"
        },
        "pretty_name": {
          "description": "Human-readable name of an operating system used by one or more selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Name"
            }
          ]
        }
      },
      "required": [
        "count",
        "pretty_name"
      ]
    },
    "cluster.stats.ClusterProcess": {
      "type": "object",
      "properties": {
        "cpu": {
          "description": "Contains statistics about CPU used by selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterProcessCpu"
            }
          ]
        },
        "open_file_descriptors": {
          "description": "Contains statistics about open file descriptors in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ClusterProcessOpenFileDescriptors"
            }
          ]
        }
      },
      "required": [
        "cpu",
        "open_file_descriptors"
      ]
    },
    "cluster.stats.ClusterProcessCpu": {
      "type": "object",
      "properties": {
        "percent": {
          "description": "Percentage of CPU used across all selected nodes.\nReturns `-1` if not supported.",
          "type": "number"
        }
      },
      "required": [
        "percent"
      ]
    },
    "cluster.stats.ClusterProcessOpenFileDescriptors": {
      "type": "object",
      "properties": {
        "avg": {
          "description": "Average number of concurrently open file descriptors.\nReturns `-1` if not supported.",
          "type": "number"
        },
        "max": {
          "description": "Maximum number of concurrently open file descriptors allowed across all selected nodes.\nReturns `-1` if not supported.",
          "type": "number"
        },
        "min": {
          "description": "Minimum number of concurrently open file descriptors across all selected nodes.\nReturns -1 if not supported.",
          "type": "number"
        }
      },
      "required": [
        "avg",
        "max",
        "min"
      ]
    },
    "cluster.stats.ClusterProcessor": {
      "type": "object",
      "properties": {
        "count": {
          "type": "number"
        },
        "current": {
          "type": "number"
        },
        "failed": {
          "type": "number"
        },
        "time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "count",
        "current",
        "failed",
        "time_in_millis"
      ]
    },
    "cluster.stats.ClusterShardMetrics": {
      "type": "object",
      "properties": {
        "avg": {
          "description": "Mean number of shards in an index, counting only shards assigned to selected nodes.",
          "type": "number"
        },
        "max": {
          "description": "Maximum number of shards in an index, counting only shards assigned to selected nodes.",
          "type": "number"
        },
        "min": {
          "description": "Minimum number of shards in an index, counting only shards assigned to selected nodes.",
          "type": "number"
        }
      },
      "required": [
        "avg",
        "max",
        "min"
      ]
    },
    "cluster.stats.ClusterSnapshotStats": {
      "type": "object",
      "properties": {
        "current_counts": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.SnapshotCurrentCounts"
            }
          ]
        },
        "repositories": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/cluster.stats.PerRepositoryStats"
          }
        }
      },
      "required": [
        "current_counts",
        "repositories"
      ]
    },
    "cluster.stats.DenseVectorOffHeapStats": {
      "type": "object",
      "properties": {
        "total_size_bytes": {
          "type": "number"
        },
        "total_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_veb_size_bytes": {
          "type": "number"
        },
        "total_veb_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_vec_size_bytes": {
          "type": "number"
        },
        "total_vec_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_veq_size_bytes": {
          "type": "number"
        },
        "total_veq_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_vex_size_bytes": {
          "type": "number"
        },
        "total_vex_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_cenif_size_bytes": {
          "type": "number"
        },
        "total_cenif_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_clivf_size_bytes": {
          "type": "number"
        },
        "total_clivf_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "fielddata": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          }
        }
      },
      "required": [
        "total_size_bytes",
        "total_veb_size_bytes",
        "total_vec_size_bytes",
        "total_veq_size_bytes",
        "total_vex_size_bytes",
        "total_cenif_size_bytes",
        "total_clivf_size_bytes"
      ]
    },
    "cluster.stats.DenseVectorStats": {
      "type": "object",
      "properties": {
        "value_count": {
          "type": "number"
        },
        "off_heap": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.DenseVectorOffHeapStats"
            }
          ]
        }
      },
      "required": [
        "value_count"
      ]
    },
    "cluster.stats.ExtendedRetrieversSearchUsage": {
      "type": "object",
      "properties": {
        "text_similarity_reranker": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ExtendedTextSimilarityRetrieverUsage"
            }
          ]
        }
      }
    },
    "cluster.stats.ExtendedSearchUsage": {
      "type": "object",
      "properties": {
        "retrievers": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ExtendedRetrieversSearchUsage"
            }
          ]
        },
        "section": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ExtendedSectionSearchUsage"
            }
          ]
        }
      }
    },
    "cluster.stats.ExtendedSectionSearchUsage": {
      "type": "object",
      "properties": {
        "sort": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        }
      }
    },
    "cluster.stats.ExtendedTextSimilarityRetrieverUsage": {
      "type": "object",
      "properties": {
        "chunk_rescorer": {
          "type": "number"
        }
      }
    },
    "cluster.stats.FieldTypes": {
      "type": "object",
      "properties": {
        "name": {
          "description": "The name for the field type in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Name"
            }
          ]
        },
        "count": {
          "description": "The number of occurrences of the field type in selected nodes.",
          "type": "number"
        },
        "index_count": {
          "description": "The number of indices containing the field type in selected nodes.",
          "type": "number"
        },
        "indexed_vector_count": {
          "description": "For dense_vector field types, number of indexed vector types in selected nodes.",
          "type": "number"
        },
        "indexed_vector_dim_max": {
          "description": "For dense_vector field types, the maximum dimension of all indexed vector types in selected nodes.",
          "type": "number"
        },
        "indexed_vector_dim_min": {
          "description": "For dense_vector field types, the minimum dimension of all indexed vector types in selected nodes.",
          "type": "number"
        },
        "script_count": {
          "description": "The number of fields that declare a script.",
          "x-state": "Generally available; Added in 7.13.0",
          "type": "number"
        },
        "vector_index_type_count": {
          "description": "For dense_vector field types, count of mappings by index type",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "vector_similarity_type_count": {
          "description": "For dense_vector field types, count of mappings by similarity",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "vector_element_type_count": {
          "description": "For dense_vector field types, count of mappings by element type",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        }
      },
      "required": [
        "name",
        "count",
        "index_count"
      ]
    },
    "cluster.stats.FieldTypesMappings": {
      "type": "object",
      "properties": {
        "field_types": {
          "description": "Contains statistics about field data types used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.FieldTypes"
          }
        },
        "runtime_field_types": {
          "description": "Contains statistics about runtime field data types used in selected nodes.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/cluster.stats.RuntimeFieldTypes"
          }
        },
        "total_field_count": {
          "description": "Total number of fields in all non-system indices.",
          "type": "number"
        },
        "total_deduplicated_field_count": {
          "description": "Total number of fields in all non-system indices, accounting for mapping deduplication.",
          "type": "number"
        },
        "total_deduplicated_mapping_size": {
          "description": "Total size of all mappings after deduplication and compression.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_deduplicated_mapping_size_in_bytes": {
          "description": "Total size of all mappings, in bytes, after deduplication and compression.",
          "type": "number"
        },
        "source_modes": {
          "description": "Source mode usage count.",
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        }
      },
      "required": [
        "field_types",
        "runtime_field_types",
        "source_modes"
      ]
    },
    "cluster.stats.IndexingPressure": {
      "type": "object",
      "properties": {
        "memory": {
          "allOf": [
            {
              "$ref": "#/$defs/nodes._types.IndexingPressureMemory"
            }
          ]
        }
      },
      "required": [
        "memory"
      ]
    },
    "cluster.stats.IndicesVersions": {
      "type": "object",
      "properties": {
        "index_count": {
          "type": "number"
        },
        "primary_shard_count": {
          "type": "number"
        },
        "total_primary_bytes": {
          "type": "number"
        },
        "total_primary_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionString"
            }
          ]
        }
      },
      "required": [
        "index_count",
        "primary_shard_count",
        "total_primary_bytes",
        "version"
      ]
    },
    "cluster.stats.NodePackagingType": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Number of selected nodes using the distribution flavor and file type.",
          "type": "number"
        },
        "flavor": {
          "description": "Type of Elasticsearch distribution. This is always `default`.",
          "type": "string"
        },
        "type": {
          "description": "File type (such as `tar` or `zip`) used for the distribution package.",
          "type": "string"
        }
      },
      "required": [
        "count",
        "flavor",
        "type"
      ]
    },
    "cluster.stats.OperatingSystemMemoryInfo": {
      "type": "object",
      "properties": {
        "adjusted_total_in_bytes": {
          "description": "Total amount, in bytes, of memory across all selected nodes, but using the value specified using the `es.total_memory_bytes` system property instead of measured total memory for those nodes where that system property was set.",
          "x-state": "Generally available; Added in 7.16.0",
          "type": "number"
        },
        "adjusted_total": {
          "description": "Total amount of memory across all selected nodes, but using the value specified using the `es.total_memory_bytes` system property instead of measured total memory for those nodes where that system property was set.",
          "x-state": "Generally available; Added in 7.16.0",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "free_in_bytes": {
          "description": "Amount, in bytes, of free physical memory across all selected nodes.",
          "type": "number"
        },
        "free": {
          "description": "Amount of free physical memory across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "free_percent": {
          "description": "Percentage of free physical memory across all selected nodes.",
          "type": "number"
        },
        "total_in_bytes": {
          "description": "Total amount, in bytes, of physical memory across all selected nodes.",
          "type": "number"
        },
        "total": {
          "description": "Total amount of physical memory across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "used_in_bytes": {
          "description": "Amount, in bytes, of physical memory in use across all selected nodes.",
          "type": "number"
        },
        "used": {
          "description": "Amount of physical memory in use across all selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "used_percent": {
          "description": "Percentage of physical memory in use across all selected nodes.",
          "type": "number"
        }
      },
      "required": [
        "free_in_bytes",
        "free_percent",
        "total_in_bytes",
        "used_in_bytes",
        "used_percent"
      ]
    },
    "cluster.stats.PerRepositoryStats": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "oldest_start_time_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.UnitMillis"
            }
          ]
        },
        "oldest_start_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DateFormat"
            }
          ]
        },
        "current_counts": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.RepositoryStatsCurrentCounts"
            }
          ]
        }
      },
      "required": [
        "type",
        "oldest_start_time_millis",
        "current_counts"
      ]
    },
    "cluster.stats.RemoteClusterInfo": {
      "type": "object",
      "properties": {
        "cluster_uuid": {
          "description": "The UUID of the remote cluster.",
          "type": "string"
        },
        "mode": {
          "description": "The connection mode used to communicate with the remote cluster.",
          "type": "string"
        },
        "skip_unavailable": {
          "description": "The `skip_unavailable` setting used for this remote cluster.",
          "type": "boolean"
        },
        "transport.compress": {
          "description": "Transport compression setting used for this remote cluster.",
          "type": "string"
        },
        "status": {
          "description": "Health status of the cluster, based on the state of its primary and replica shards.\n\nSupported values include:\n  - `green` (or `GREEN`): All shards are assigned.\n  - `yellow` (or `YELLOW`): All primary shards are assigned, but one or more replica shards are unassigned. If a node in the cluster fails, some data could be unavailable until that node is repaired.\n  - `red` (or `RED`): One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned.\n  - `unknown`\n  - `unavailable`\n\n",
          "allOf": [
            {
              "$ref": "#/$defs/_types.HealthStatus"
            }
          ]
        },
        "version": {
          "description": "The list of Elasticsearch versions used by the nodes on the remote cluster.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.VersionString"
          }
        },
        "nodes_count": {
          "description": "The total count of nodes in the remote cluster.",
          "type": "number"
        },
        "shards_count": {
          "description": "The total number of shards in the remote cluster.",
          "type": "number"
        },
        "indices_count": {
          "description": "The total number of indices in the remote cluster.",
          "type": "number"
        },
        "indices_total_size_in_bytes": {
          "description": "Total data set size, in bytes, of all shards assigned to selected nodes.",
          "type": "number"
        },
        "indices_total_size": {
          "description": "Total data set size of all shards assigned to selected nodes, as a human-readable string.",
          "type": "string"
        },
        "max_heap_in_bytes": {
          "description": "Maximum amount of memory, in bytes, available for use by the heap across the nodes of the remote cluster.",
          "type": "number"
        },
        "max_heap": {
          "description": "Maximum amount of memory available for use by the heap across the nodes of the remote cluster, as a human-readable string.",
          "type": "string"
        },
        "mem_total_in_bytes": {
          "description": "Total amount, in bytes, of physical memory across the nodes of the remote cluster.",
          "type": "number"
        },
        "mem_total": {
          "description": "Total amount of physical memory across the nodes of the remote cluster, as a human-readable string.",
          "type": "string"
        }
      },
      "required": [
        "cluster_uuid",
        "mode",
        "skip_unavailable",
        "transport.compress",
        "status",
        "version",
        "nodes_count",
        "shards_count",
        "indices_count",
        "indices_total_size_in_bytes",
        "max_heap_in_bytes",
        "mem_total_in_bytes"
      ]
    },
    "cluster.stats.RepositoryStatsCurrentCounts": {
      "type": "object",
      "properties": {
        "snapshots": {
          "type": "number"
        },
        "clones": {
          "type": "number"
        },
        "finalizations": {
          "type": "number"
        },
        "deletions": {
          "type": "number"
        },
        "snapshot_deletions": {
          "type": "number"
        },
        "active_deletions": {
          "type": "number"
        },
        "shards": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.RepositoryStatsShards"
            }
          ]
        }
      },
      "required": [
        "snapshots",
        "clones",
        "finalizations",
        "deletions",
        "snapshot_deletions",
        "active_deletions",
        "shards"
      ]
    },
    "cluster.stats.RepositoryStatsShards": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "complete": {
          "type": "number"
        },
        "incomplete": {
          "type": "number"
        },
        "states": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        }
      },
      "required": [
        "total",
        "complete",
        "incomplete",
        "states"
      ]
    },
    "cluster.stats.RuntimeFieldTypes": {
      "type": "object",
      "properties": {
        "chars_max": {
          "description": "Maximum number of characters for a single runtime field script.",
          "type": "number"
        },
        "chars_total": {
          "description": "Total number of characters for the scripts that define the current runtime field data type.",
          "type": "number"
        },
        "count": {
          "description": "Number of runtime fields mapped to the field data type in selected nodes.",
          "type": "number"
        },
        "doc_max": {
          "description": "Maximum number of accesses to doc_values for a single runtime field script",
          "type": "number"
        },
        "doc_total": {
          "description": "Total number of accesses to doc_values for the scripts that define the current runtime field data type.",
          "type": "number"
        },
        "index_count": {
          "description": "Number of indices containing a mapping of the runtime field data type in selected nodes.",
          "type": "number"
        },
        "lang": {
          "description": "Script languages used for the runtime fields scripts.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lines_max": {
          "description": "Maximum number of lines for a single runtime field script.",
          "type": "number"
        },
        "lines_total": {
          "description": "Total number of lines for the scripts that define the current runtime field data type.",
          "type": "number"
        },
        "name": {
          "description": "Field data type used in selected nodes.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Name"
            }
          ]
        },
        "scriptless_count": {
          "description": "Number of runtime fields that don’t declare a script.",
          "type": "number"
        },
        "shadowed_count": {
          "description": "Number of runtime fields that shadow an indexed field.",
          "type": "number"
        },
        "source_max": {
          "description": "Maximum number of accesses to _source for a single runtime field script.",
          "type": "number"
        },
        "source_total": {
          "description": "Total number of accesses to _source for the scripts that define the current runtime field data type.",
          "type": "number"
        }
      },
      "required": [
        "chars_max",
        "chars_total",
        "count",
        "doc_max",
        "doc_total",
        "index_count",
        "lang",
        "lines_max",
        "lines_total",
        "name",
        "scriptless_count",
        "shadowed_count",
        "source_max",
        "source_total"
      ]
    },
    "cluster.stats.SearchUsageStats": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "queries": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "rescorers": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "sections": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "retrievers": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        "extended": {
          "allOf": [
            {
              "$ref": "#/$defs/cluster.stats.ExtendedSearchUsage"
            }
          ]
        }
      },
      "required": [
        "total",
        "queries",
        "rescorers",
        "sections",
        "retrievers",
        "extended"
      ]
    },
    "cluster.stats.SnapshotCurrentCounts": {
      "type": "object",
      "properties": {
        "snapshots": {
          "description": "Snapshots currently in progress",
          "type": "number"
        },
        "shard_snapshots": {
          "description": "Incomplete shard snapshots",
          "type": "number"
        },
        "snapshot_deletions": {
          "description": "Snapshots deletions in progress",
          "type": "number"
        },
        "concurrent_operations": {
          "description": "Sum of snapshots and snapshot_deletions",
          "type": "number"
        },
        "cleanups": {
          "description": "Cleanups in progress, not counted in concurrent_operations as they are not concurrent",
          "type": "number"
        }
      },
      "required": [
        "snapshots",
        "shard_snapshots",
        "snapshot_deletions",
        "concurrent_operations",
        "cleanups"
      ]
    },
    "cluster.stats.SparseVectorStats": {
      "type": "object",
      "properties": {
        "value_count": {
          "type": "number"
        }
      },
      "required": [
        "value_count"
      ]
    },
    "cluster.stats.SynonymsStats": {
      "type": "object",
      "properties": {
        "count": {
          "type": "number"
        },
        "index_count": {
          "type": "number"
        }
      },
      "required": [
        "count",
        "index_count"
      ]
    },
    "indices.stats.ShardFileSizeInfo": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "size_in_bytes": {
          "type": "number"
        },
        "min_size_in_bytes": {
          "type": "number"
        },
        "max_size_in_bytes": {
          "type": "number"
        },
        "average_size_in_bytes": {
          "type": "number"
        },
        "count": {
          "type": "number"
        }
      },
      "required": [
        "description",
        "size_in_bytes"
      ]
    },
    "nodes._types.IndexingPressureMemory": {
      "type": "object",
      "properties": {
        "limit": {
          "description": "Configured memory limit for the indexing requests.\nReplica requests have an automatic limit that is 1.5x this value.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "limit_in_bytes": {
          "description": "Configured memory limit, in bytes, for the indexing requests.\nReplica requests have an automatic limit that is 1.5x this value.",
          "type": "number"
        },
        "current": {
          "description": "Contains statistics for current indexing load.",
          "allOf": [
            {
              "$ref": "#/$defs/nodes._types.PressureMemory"
            }
          ]
        },
        "total": {
          "description": "Contains statistics for the cumulative indexing load since the node started.",
          "allOf": [
            {
              "$ref": "#/$defs/nodes._types.PressureMemory"
            }
          ]
        }
      }
    },
    "nodes._types.NodesResponseBase": {
      "type": "object",
      "properties": {
        "_nodes": {
          "description": "Contains statistics about the number of nodes selected by the request’s node filters.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.NodeStatistics"
            }
          ]
        }
      }
    },
    "nodes._types.PressureMemory": {
      "type": "object",
      "properties": {
        "all": {
          "description": "Memory consumed by indexing requests in the coordinating, primary, or replica stage.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "all_in_bytes": {
          "description": "Memory consumed, in bytes, by indexing requests in the coordinating, primary, or replica stage.",
          "type": "number"
        },
        "combined_coordinating_and_primary": {
          "description": "Memory consumed by indexing requests in the coordinating or primary stage.\nThis value is not the sum of coordinating and primary as a node can reuse the coordinating memory if the primary stage is executed locally.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "combined_coordinating_and_primary_in_bytes": {
          "description": "Memory consumed, in bytes, by indexing requests in the coordinating or primary stage.\nThis value is not the sum of coordinating and primary as a node can reuse the coordinating memory if the primary stage is executed locally.",
          "type": "number"
        },
        "coordinating": {
          "description": "Memory consumed by indexing requests in the coordinating stage.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "coordinating_in_bytes": {
          "description": "Memory consumed, in bytes, by indexing requests in the coordinating stage.",
          "type": "number"
        },
        "primary": {
          "description": "Memory consumed by indexing requests in the primary stage.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "primary_in_bytes": {
          "description": "Memory consumed, in bytes, by indexing requests in the primary stage.",
          "type": "number"
        },
        "replica": {
          "description": "Memory consumed by indexing requests in the replica stage.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "replica_in_bytes": {
          "description": "Memory consumed, in bytes, by indexing requests in the replica stage.",
          "type": "number"
        },
        "coordinating_rejections": {
          "description": "Number of indexing requests rejected in the coordinating stage.",
          "type": "number"
        },
        "primary_rejections": {
          "description": "Number of indexing requests rejected in the primary stage.",
          "type": "number"
        },
        "replica_rejections": {
          "description": "Number of indexing requests rejected in the replica stage.",
          "type": "number"
        },
        "primary_document_rejections": {
          "type": "number"
        },
        "large_operation_rejections": {
          "type": "number"
        }
      }
    }
  }
}