{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ApplicationUsage",
  "description": "ApplicationUsage schema from Palo Alto Networks Prisma SD-WAN API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-sd-wan-api-application-usage-schema.json",
  "type": "object",
  "properties": {
    "application": {
      "type": "string",
      "description": "Application name."
    },
    "site_id": {
      "type": "string",
      "description": "Site where the application traffic was observed."
    },
    "bytes_up": {
      "type": "integer",
      "format": "int64",
      "description": "Uploaded bytes for the application."
    },
    "bytes_down": {
      "type": "integer",
      "format": "int64",
      "description": "Downloaded bytes for the application."
    },
    "sessions": {
      "type": "integer",
      "description": "Number of application sessions."
    },
    "avg_latency_ms": {
      "type": "number",
      "description": "Average latency for application traffic."
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Time bucket for the usage data."
    }
  }
}
