{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-indices-stats-indices-stats-schema.json",
  "title": "indices.stats.IndicesStats",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-indices-api-openapi.yml#/components/schemas/indices.stats.IndicesStats",
  "type": "object",
  "properties": {
    "primaries": {
      "allOf": [
        {
          "$ref": "#/$defs/indices.stats.IndexStats"
        }
      ]
    },
    "shards": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/indices.stats.ShardStats"
        }
      }
    },
    "total": {
      "allOf": [
        {
          "$ref": "#/$defs/indices.stats.IndexStats"
        }
      ]
    },
    "uuid": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.Uuid"
        }
      ]
    },
    "health": {
      "description": "\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",
      "x-state": "Generally available; Added in 8.1.0",
      "allOf": [
        {
          "$ref": "#/$defs/_types.HealthStatus"
        }
      ]
    },
    "status": {
      "x-state": "Generally available; Added in 8.1.0",
      "allOf": [
        {
          "$ref": "#/$defs/indices.stats.IndexMetadataState"
        }
      ]
    }
  },
  "$defs": {
    "_types.BulkStats": {
      "type": "object",
      "properties": {
        "total_operations": {
          "type": "number"
        },
        "total_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "total_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_size_in_bytes": {
          "type": "number"
        },
        "avg_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "avg_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "avg_size": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "avg_size_in_bytes": {
          "type": "number"
        }
      },
      "required": [
        "total_operations",
        "total_time_in_millis",
        "total_size_in_bytes",
        "avg_time_in_millis",
        "avg_size_in_bytes"
      ]
    },
    "_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.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.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.FlushStats": {
      "type": "object",
      "properties": {
        "periodic": {
          "type": "number"
        },
        "total": {
          "type": "number"
        },
        "total_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "periodic",
        "total",
        "total_time_in_millis"
      ]
    },
    "_types.GetStats": {
      "type": "object",
      "properties": {
        "current": {
          "type": "number"
        },
        "exists_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "exists_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "exists_total": {
          "type": "number"
        },
        "missing_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "missing_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "missing_total": {
          "type": "number"
        },
        "time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "total": {
          "type": "number"
        }
      },
      "required": [
        "current",
        "exists_time_in_millis",
        "exists_total",
        "missing_time_in_millis",
        "missing_total",
        "time_in_millis",
        "total"
      ]
    },
    "_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.Id": {
      "type": "string"
    },
    "_types.IndexingStats": {
      "type": "object",
      "properties": {
        "index_current": {
          "type": "number"
        },
        "delete_current": {
          "type": "number"
        },
        "delete_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "delete_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "delete_total": {
          "type": "number"
        },
        "is_throttled": {
          "type": "boolean"
        },
        "noop_update_total": {
          "type": "number"
        },
        "throttle_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "throttle_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "index_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "index_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "index_total": {
          "type": "number"
        },
        "index_failed": {
          "type": "number"
        },
        "types": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.IndexingStats"
          }
        },
        "write_load": {
          "type": "number"
        },
        "recent_write_load": {
          "type": "number"
        },
        "peak_write_load": {
          "type": "number"
        }
      },
      "required": [
        "index_current",
        "delete_current",
        "delete_time_in_millis",
        "delete_total",
        "is_throttled",
        "noop_update_total",
        "throttle_time_in_millis",
        "index_time_in_millis",
        "index_total",
        "index_failed"
      ]
    },
    "_types.MergesStats": {
      "type": "object",
      "properties": {
        "current": {
          "type": "number"
        },
        "current_docs": {
          "type": "number"
        },
        "current_size": {
          "type": "string"
        },
        "current_size_in_bytes": {
          "type": "number"
        },
        "total": {
          "type": "number"
        },
        "total_auto_throttle": {
          "type": "string"
        },
        "total_auto_throttle_in_bytes": {
          "type": "number"
        },
        "total_docs": {
          "type": "number"
        },
        "total_size": {
          "type": "string"
        },
        "total_size_in_bytes": {
          "type": "number"
        },
        "total_stopped_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_stopped_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "total_throttled_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_throttled_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "total_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "current",
        "current_docs",
        "current_size_in_bytes",
        "total",
        "total_auto_throttle_in_bytes",
        "total_docs",
        "total_size_in_bytes",
        "total_stopped_time_in_millis",
        "total_throttled_time_in_millis",
        "total_time_in_millis"
      ]
    },
    "_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.RecoveryStats": {
      "type": "object",
      "properties": {
        "current_as_source": {
          "type": "number"
        },
        "current_as_target": {
          "type": "number"
        },
        "throttle_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "throttle_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "current_as_source",
        "current_as_target",
        "throttle_time_in_millis"
      ]
    },
    "_types.RefreshStats": {
      "type": "object",
      "properties": {
        "external_total": {
          "type": "number"
        },
        "external_total_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "listeners": {
          "type": "number"
        },
        "total": {
          "type": "number"
        },
        "total_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "external_total",
        "external_total_time_in_millis",
        "listeners",
        "total",
        "total_time_in_millis"
      ]
    },
    "_types.RequestCacheStats": {
      "type": "object",
      "properties": {
        "evictions": {
          "type": "number"
        },
        "hit_count": {
          "type": "number"
        },
        "memory_size": {
          "type": "string"
        },
        "memory_size_in_bytes": {
          "type": "number"
        },
        "miss_count": {
          "type": "number"
        }
      },
      "required": [
        "evictions",
        "hit_count",
        "memory_size_in_bytes",
        "miss_count"
      ]
    },
    "_types.SearchStats": {
      "type": "object",
      "properties": {
        "fetch_current": {
          "type": "number"
        },
        "fetch_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "fetch_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "fetch_total": {
          "type": "number"
        },
        "open_contexts": {
          "type": "number"
        },
        "query_current": {
          "type": "number"
        },
        "query_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "query_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "query_total": {
          "type": "number"
        },
        "scroll_current": {
          "type": "number"
        },
        "scroll_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "scroll_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "scroll_total": {
          "type": "number"
        },
        "suggest_current": {
          "type": "number"
        },
        "suggest_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "suggest_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        },
        "suggest_total": {
          "type": "number"
        },
        "recent_search_load": {
          "type": "number"
        },
        "groups": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_types.SearchStats"
          }
        }
      },
      "required": [
        "fetch_current",
        "fetch_time_in_millis",
        "fetch_total",
        "query_current",
        "query_time_in_millis",
        "query_total",
        "scroll_current",
        "scroll_time_in_millis",
        "scroll_total",
        "suggest_current",
        "suggest_time_in_millis",
        "suggest_total"
      ]
    },
    "_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.SequenceNumber": {
      "type": "number"
    },
    "_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.TranslogStats": {
      "type": "object",
      "properties": {
        "earliest_last_modified_age": {
          "type": "number"
        },
        "operations": {
          "type": "number"
        },
        "size": {
          "type": "string"
        },
        "size_in_bytes": {
          "type": "number"
        },
        "uncommitted_operations": {
          "type": "number"
        },
        "uncommitted_size": {
          "type": "string"
        },
        "uncommitted_size_in_bytes": {
          "type": "number"
        }
      },
      "required": [
        "earliest_last_modified_age",
        "operations",
        "size_in_bytes",
        "uncommitted_operations",
        "uncommitted_size_in_bytes"
      ]
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    },
    "_types.Uuid": {
      "type": "string"
    },
    "_types.VersionNumber": {
      "type": "number"
    },
    "_types.WarmerStats": {
      "type": "object",
      "properties": {
        "current": {
          "type": "number"
        },
        "total": {
          "type": "number"
        },
        "total_time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "total_time_in_millis": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitMillis"
            }
          ]
        }
      },
      "required": [
        "current",
        "total",
        "total_time_in_millis"
      ]
    },
    "indices.stats.IndexMetadataState": {
      "type": "string",
      "enum": [
        "open",
        "close"
      ]
    },
    "indices.stats.IndexStats": {
      "type": "object",
      "properties": {
        "completion": {
          "description": "Contains statistics about completions across all shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.CompletionStats"
            }
          ]
        },
        "docs": {
          "description": "Contains statistics about documents across all primary shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.DocStats"
            }
          ]
        },
        "fielddata": {
          "description": "Contains statistics about the field data cache across all shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.FielddataStats"
            }
          ]
        },
        "flush": {
          "description": "Contains statistics about flush operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.FlushStats"
            }
          ]
        },
        "get": {
          "description": "Contains statistics about get operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.GetStats"
            }
          ]
        },
        "indexing": {
          "description": "Contains statistics about indexing operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexingStats"
            }
          ]
        },
        "indices": {
          "description": "Contains statistics about indices operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.IndicesStats"
            }
          ]
        },
        "merges": {
          "description": "Contains statistics about merge operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.MergesStats"
            }
          ]
        },
        "query_cache": {
          "description": "Contains statistics about the query cache across all shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.QueryCacheStats"
            }
          ]
        },
        "recovery": {
          "description": "Contains statistics about recovery operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.RecoveryStats"
            }
          ]
        },
        "refresh": {
          "description": "Contains statistics about refresh operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.RefreshStats"
            }
          ]
        },
        "request_cache": {
          "description": "Contains statistics about the request cache across all shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.RequestCacheStats"
            }
          ]
        },
        "search": {
          "description": "Contains statistics about search operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.SearchStats"
            }
          ]
        },
        "segments": {
          "description": "Contains statistics about segments across all shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.SegmentsStats"
            }
          ]
        },
        "store": {
          "description": "Contains statistics about the size of shards assigned to the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.StoreStats"
            }
          ]
        },
        "translog": {
          "description": "Contains statistics about transaction log operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.TranslogStats"
            }
          ]
        },
        "warmer": {
          "description": "Contains statistics about index warming operations for the node.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.WarmerStats"
            }
          ]
        },
        "bulk": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.BulkStats"
            }
          ]
        },
        "shard_stats": {
          "x-state": "Generally available; Added in 7.15.0",
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardsTotalStats"
            }
          ]
        }
      }
    },
    "indices.stats.IndicesStats": {
      "type": "object",
      "properties": {
        "primaries": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.IndexStats"
            }
          ]
        },
        "shards": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/indices.stats.ShardStats"
            }
          }
        },
        "total": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.IndexStats"
            }
          ]
        },
        "uuid": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Uuid"
            }
          ]
        },
        "health": {
          "description": "\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",
          "x-state": "Generally available; Added in 8.1.0",
          "allOf": [
            {
              "$ref": "#/$defs/_types.HealthStatus"
            }
          ]
        },
        "status": {
          "x-state": "Generally available; Added in 8.1.0",
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.IndexMetadataState"
            }
          ]
        }
      }
    },
    "indices.stats.MappingStats": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "number"
        },
        "total_estimated_overhead": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ByteSize"
            }
          ]
        },
        "total_estimated_overhead_in_bytes": {
          "type": "number"
        }
      },
      "required": [
        "total_count",
        "total_estimated_overhead_in_bytes"
      ]
    },
    "indices.stats.ShardCommit": {
      "type": "object",
      "properties": {
        "generation": {
          "type": "number"
        },
        "id": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Id"
            }
          ]
        },
        "num_docs": {
          "type": "number"
        },
        "user_data": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "generation",
        "id",
        "num_docs",
        "user_data"
      ]
    },
    "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"
      ]
    },
    "indices.stats.ShardLease": {
      "type": "object",
      "properties": {
        "id": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Id"
            }
          ]
        },
        "retaining_seq_no": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SequenceNumber"
            }
          ]
        },
        "timestamp": {
          "type": "number"
        },
        "source": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "retaining_seq_no",
        "timestamp",
        "source"
      ]
    },
    "indices.stats.ShardPath": {
      "type": "object",
      "properties": {
        "data_path": {
          "type": "string"
        },
        "is_custom_data_path": {
          "type": "boolean"
        },
        "state_path": {
          "type": "string"
        }
      },
      "required": [
        "data_path",
        "is_custom_data_path",
        "state_path"
      ]
    },
    "indices.stats.ShardQueryCache": {
      "type": "object",
      "properties": {
        "cache_count": {
          "type": "number"
        },
        "cache_size": {
          "type": "number"
        },
        "evictions": {
          "type": "number"
        },
        "hit_count": {
          "type": "number"
        },
        "memory_size_in_bytes": {
          "type": "number"
        },
        "miss_count": {
          "type": "number"
        },
        "total_count": {
          "type": "number"
        }
      },
      "required": [
        "cache_count",
        "cache_size",
        "evictions",
        "hit_count",
        "memory_size_in_bytes",
        "miss_count",
        "total_count"
      ]
    },
    "indices.stats.ShardRetentionLeases": {
      "type": "object",
      "properties": {
        "primary_term": {
          "type": "number"
        },
        "version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionNumber"
            }
          ]
        },
        "leases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/indices.stats.ShardLease"
          }
        }
      },
      "required": [
        "primary_term",
        "version",
        "leases"
      ]
    },
    "indices.stats.ShardRouting": {
      "type": "object",
      "properties": {
        "node": {
          "type": "string"
        },
        "primary": {
          "type": "boolean"
        },
        "relocating_node": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardRoutingState"
            }
          ]
        }
      },
      "required": [
        "node",
        "primary",
        "state"
      ]
    },
    "indices.stats.ShardRoutingState": {
      "type": "string",
      "enum": [
        "UNASSIGNED",
        "INITIALIZING",
        "STARTED",
        "RELOCATING"
      ]
    },
    "indices.stats.ShardSequenceNumber": {
      "type": "object",
      "properties": {
        "global_checkpoint": {
          "type": "number"
        },
        "local_checkpoint": {
          "type": "number"
        },
        "max_seq_no": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SequenceNumber"
            }
          ]
        }
      },
      "required": [
        "global_checkpoint",
        "local_checkpoint",
        "max_seq_no"
      ]
    },
    "indices.stats.ShardStats": {
      "type": "object",
      "properties": {
        "commit": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardCommit"
            }
          ]
        },
        "completion": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.CompletionStats"
            }
          ]
        },
        "docs": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DocStats"
            }
          ]
        },
        "fielddata": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.FielddataStats"
            }
          ]
        },
        "flush": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.FlushStats"
            }
          ]
        },
        "get": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.GetStats"
            }
          ]
        },
        "indexing": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexingStats"
            }
          ]
        },
        "mappings": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.MappingStats"
            }
          ]
        },
        "merges": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.MergesStats"
            }
          ]
        },
        "shard_path": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardPath"
            }
          ]
        },
        "query_cache": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardQueryCache"
            }
          ]
        },
        "recovery": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.RecoveryStats"
            }
          ]
        },
        "refresh": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.RefreshStats"
            }
          ]
        },
        "request_cache": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.RequestCacheStats"
            }
          ]
        },
        "retention_leases": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardRetentionLeases"
            }
          ]
        },
        "routing": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardRouting"
            }
          ]
        },
        "search": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SearchStats"
            }
          ]
        },
        "segments": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SegmentsStats"
            }
          ]
        },
        "seq_no": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardSequenceNumber"
            }
          ]
        },
        "store": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.StoreStats"
            }
          ]
        },
        "translog": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.TranslogStats"
            }
          ]
        },
        "warmer": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.WarmerStats"
            }
          ]
        },
        "bulk": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.BulkStats"
            }
          ]
        },
        "shards": {
          "x-state": "Generally available; Added in 7.15.0",
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "shard_stats": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.ShardsTotalStats"
            }
          ]
        },
        "indices": {
          "allOf": [
            {
              "$ref": "#/$defs/indices.stats.IndicesStats"
            }
          ]
        }
      }
    },
    "indices.stats.ShardsTotalStats": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "number"
        }
      },
      "required": [
        "total_count"
      ]
    }
  }
}