{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-enrich-stats-cache-stats-schema.json",
  "title": "enrich.stats.CacheStats",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-enrich-api-openapi.yml#/components/schemas/enrich.stats.CacheStats",
  "type": "object",
  "properties": {
    "node_id": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.Id"
        }
      ]
    },
    "count": {
      "type": "number"
    },
    "hits": {
      "type": "number"
    },
    "hits_time_in_millis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DurationValueUnitMillis"
        }
      ]
    },
    "misses": {
      "type": "number"
    },
    "misses_time_in_millis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.DurationValueUnitMillis"
        }
      ]
    },
    "evictions": {
      "type": "number"
    },
    "size_in_bytes": {
      "type": "number"
    }
  },
  "required": [
    "node_id",
    "count",
    "hits",
    "hits_time_in_millis",
    "misses",
    "misses_time_in_millis",
    "evictions",
    "size_in_bytes"
  ],
  "$defs": {
    "_types.DurationValueUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.Id": {
      "type": "string"
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    }
  }
}