{
  "$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-qo-s-rule-structure.json",
  "name": "QoSRule",
  "description": "QoSRule schema from Palo Alto Networks Prisma SD-WAN API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the QoS rule."
    },
    "name": {
      "type": "string",
      "description": "Name of the QoS rule."
    },
    "description": {
      "type": "string"
    },
    "priority": {
      "type": "string",
      "description": "Traffic priority for matching flows.",
      "enum": [
        "high",
        "medium",
        "low",
        "default"
      ]
    },
    "dscp_class": {
      "type": "string",
      "description": "DSCP class to apply for marking traffic."
    },
    "app_filters": {
      "type": "array",
      "description": "Application names or identifiers this rule applies to.",
      "items": {
        "type": "string"
      }
    },
    "bandwidth_limit_up": {
      "type": "double",
      "description": "Upstream bandwidth limit in Mbps for matched traffic."
    },
    "bandwidth_limit_down": {
      "type": "double",
      "description": "Downstream bandwidth limit in Mbps for matched traffic."
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the rule is active.",
      "default": true
    },
    "created_at": {
      "type": "datetime"
    },
    "updated_at": {
      "type": "datetime"
    }
  },
  "required": [
    "name"
  ]
}
