{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RealtimeMeasurements",
  "title": "RealtimeMeasurements",
  "type": "object",
  "description": "A set of measurements for a specific time period and data center or aggregated across all data centers.",
  "properties": {
    "requests": {
      "type": "integer",
      "description": "The total number of requests received."
    },
    "hits": {
      "type": "integer",
      "description": "The number of cache hits."
    },
    "miss": {
      "type": "integer",
      "description": "The number of cache misses."
    },
    "pass": {
      "type": "integer",
      "description": "The number of requests that passed through to origin."
    },
    "errors": {
      "type": "integer",
      "description": "The total number of errors."
    },
    "bandwidth": {
      "type": "integer",
      "description": "The total bandwidth in bytes."
    },
    "header_size": {
      "type": "integer",
      "description": "The total header size in bytes."
    },
    "body_size": {
      "type": "integer",
      "description": "The total body size in bytes."
    },
    "status_1xx": {
      "type": "integer",
      "description": "The number of responses with 1xx status codes."
    },
    "status_2xx": {
      "type": "integer",
      "description": "The number of responses with 2xx status codes."
    },
    "status_3xx": {
      "type": "integer",
      "description": "The number of responses with 3xx status codes."
    },
    "status_4xx": {
      "type": "integer",
      "description": "The number of responses with 4xx status codes."
    },
    "status_5xx": {
      "type": "integer",
      "description": "The number of responses with 5xx status codes."
    },
    "hit_ratio": {
      "type": "number",
      "format": "float",
      "description": "The ratio of cache hits to total requests."
    }
  }
}