{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Alarm",
  "description": "Alarm 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-alarm-schema.json",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique alarm identifier."
    },
    "type": {
      "type": "string",
      "description": "Alarm type identifier."
    },
    "severity": {
      "type": "string",
      "enum": [
        "critical",
        "major",
        "minor",
        "info"
      ],
      "description": "Alarm severity level."
    },
    "site_id": {
      "type": "string",
      "description": "Site where the alarm was generated."
    },
    "site_name": {
      "type": "string",
      "description": "Name of the site where the alarm was generated."
    },
    "element_id": {
      "type": "string",
      "description": "ION element identifier that generated the alarm."
    },
    "message": {
      "type": "string",
      "description": "Human-readable alarm description."
    },
    "acknowledged": {
      "type": "boolean",
      "description": "Whether the alarm has been acknowledged."
    },
    "acknowledged_by": {
      "type": "string",
      "description": "User who acknowledged the alarm."
    },
    "acknowledged_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the alarm was acknowledged."
    },
    "raised_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the alarm was raised."
    },
    "cleared_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the alarm was cleared. Null if still active."
    }
  }
}
