{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vee3-io/json-schema/vee3-io-pages-statistics-result-schema.json",
  "title": "PagesStatisticsResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vee3-io-pages-api-openapi.yml#/components/schemas/PagesStatisticsResult",
  "properties": {
    "page_id": {
      "type": "string",
      "title": "Page Id"
    },
    "date_from": {
      "type": "string",
      "title": "Date From"
    },
    "date_to": {
      "type": "string",
      "title": "Date To"
    },
    "request_count": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Request Count"
    },
    "bandwidth_bytes": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Bandwidth Bytes"
    },
    "cache_hit_rate": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Cache Hit Rate"
    },
    "traffic_by_country": {
      "items": {
        "$ref": "#/$defs/PagesStatisticsCountryTraffic"
      },
      "type": "array",
      "title": "Traffic By Country"
    }
  },
  "type": "object",
  "required": [
    "page_id",
    "date_from",
    "date_to",
    "request_count",
    "bandwidth_bytes",
    "cache_hit_rate",
    "traffic_by_country"
  ],
  "$defs": {
    "PagesStatisticsCountryTraffic": {
      "properties": {
        "country_code": {
          "type": "string",
          "title": "Country Code"
        },
        "bandwidth_bytes": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Bandwidth Bytes"
        }
      },
      "type": "object",
      "required": [
        "country_code",
        "bandwidth_bytes"
      ],
      "title": "PagesStatisticsCountryTraffic"
    }
  }
}