{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Alert",
  "title": "Alert",
  "type": "object",
  "description": "An alert generated by a managed device",
  "properties": {
    "Id": {
      "type": "integer",
      "description": "Unique alert identifier"
    },
    "AlertDeviceId": {
      "type": "integer",
      "description": "Device that generated the alert"
    },
    "AlertDeviceName": {
      "type": "string",
      "description": "Name of the device that generated the alert"
    },
    "AlertDeviceIpAddress": {
      "type": "string",
      "description": "IP address of the device"
    },
    "SeverityType": {
      "type": "integer",
      "description": "Alert severity code. 1 is informational, 2 is normal, 4 is warning, 8 is critical, 16 is unknown."
    },
    "StatusType": {
      "type": "integer",
      "description": "Alert acknowledgment status. 1000 is new, 2000 is acknowledged."
    },
    "CategoryName": {
      "type": "string",
      "description": "Alert category name"
    },
    "SubCategoryName": {
      "type": "string",
      "description": "Alert subcategory name"
    },
    "Message": {
      "type": "string",
      "description": "Alert message text"
    },
    "TimeStamp": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the alert was generated"
    },
    "RecommendedAction": {
      "type": "string",
      "description": "Recommended action to resolve the alert"
    }
  }
}