{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-indices-data-streams-stats-data-streams-stats-item-schema.json",
  "title": "indices.data_streams_stats.DataStreamsStatsItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-data-stream-api-openapi.yml#/components/schemas/indices.data_streams_stats.DataStreamsStatsItem",
  "type": "object",
  "properties": {
    "backing_indices": {
      "description": "Current number of backing indices for the data stream.",
      "type": "number"
    },
    "data_stream": {
      "description": "Name of the data stream.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Name"
        }
      ]
    },
    "maximum_timestamp": {
      "description": "The data stream’s highest `@timestamp` value, converted to milliseconds since the Unix epoch.\nNOTE: This timestamp is provided as a best effort.\nThe data stream may contain `@timestamp` values higher than this if one or more of the following conditions are met:\nThe stream contains closed backing indices;\nBacking indices with a lower generation contain higher `@timestamp` values.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.EpochTimeUnitMillis"
        }
      ]
    },
    "store_size": {
      "description": "Total size of all shards for the data stream’s backing indices.\nThis parameter is only returned if the `human` query parameter is `true`.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.ByteSize"
        }
      ]
    },
    "store_size_bytes": {
      "description": "Total size, in bytes, of all shards for the data stream’s backing indices.",
      "type": "number"
    }
  },
  "required": [
    "backing_indices",
    "data_stream",
    "maximum_timestamp",
    "store_size_bytes"
  ],
  "$defs": {
    "_types.ByteSize": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "string"
        }
      ]
    },
    "_types.EpochTimeUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.Name": {
      "type": "string"
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    }
  }
}