{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/prisma-sd-wan-api-site-metric-structure.json",
  "name": "SiteMetric",
  "description": "SiteMetric schema from Palo Alto Networks Prisma SD-WAN API",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "datetime",
      "description": "Time bucket for the aggregated metric."
    },
    "site_id": {
      "type": "string",
      "description": "Site identifier."
    },
    "interface_name": {
      "type": "string",
      "description": "WAN interface name."
    },
    "metric_type": {
      "type": "string",
      "description": "Type of metric.",
      "enum": [
        "bandwidth",
        "latency",
        "jitter",
        "packet_loss"
      ]
    },
    "value": {
      "type": "double",
      "description": "Metric value."
    },
    "unit": {
      "type": "string",
      "description": "Unit of measurement (e.g., Mbps, ms, pct)."
    },
    "direction": {
      "type": "string",
      "description": "Traffic direction for bandwidth metrics.",
      "enum": [
        "upload",
        "download"
      ]
    }
  }
}
