{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentdeals-dev/json-schema/agentdeals-dev-traffic-window-schema.json",
  "title": "TrafficWindow",
  "description": "Request counts over one window. `coverage` says how much of the window we hold data for, so a low figure can be read as quiet rather than as unrecorded.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentdeals-dev-traffic-api-openapi.yml#/components/schemas/TrafficWindow",
  "type": "object",
  "properties": {
    "days": {
      "type": "integer"
    },
    "from": {
      "type": "string",
      "format": "date"
    },
    "to": {
      "type": "string",
      "format": "date"
    },
    "detail_days": {
      "type": "integer"
    },
    "data_days_available": {
      "type": "integer"
    },
    "coverage": {
      "type": "string"
    },
    "hits_total": {
      "type": "integer"
    },
    "hits_excluding_internal": {
      "type": "integer",
      "description": "Hits with our own crawling removed."
    },
    "by_class": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "Hits per client class."
    },
    "ai_agent_by_family": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "ai_agent_by_trigger": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "AI-agent hits split by whether a person asked for them."
    }
  }
}