{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-alert-list-2-schema.json",
  "title": "AlertList_2",
  "description": "The collection of alerts.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-alerts-api-openapi.yml#/components/schemas/AlertList_2",
  "required": [
    "value"
  ],
  "type": "object",
  "properties": {
    "value": {
      "description": "The value.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Alert_3"
      }
    },
    "nextLink": {
      "description": "The URI of the next page of alerts.",
      "type": "string"
    }
  },
  "$defs": {
    "AlertErrorDetails_2": {
      "description": "The details of the error for which the alert was raised",
      "type": "object",
      "properties": {
        "errorCode": {
          "description": "The error code",
          "type": "string"
        },
        "errorMessage": {
          "description": "The error message",
          "type": "string"
        },
        "occurences": {
          "format": "int32",
          "description": "The number of occurrences",
          "type": "integer"
        }
      }
    },
    "AlertProperties_2": {
      "description": "The properties of alert",
      "required": [
        "title",
        "scope",
        "alertType",
        "appearedAtTime",
        "appearedAtSourceTime",
        "source",
        "severity",
        "status"
      ],
      "type": "object",
      "properties": {
        "title": {
          "description": "The title of the alert",
          "type": "string"
        },
        "scope": {
          "description": "The scope of the alert",
          "enum": [
            "Resource",
            "Device"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "AlertScope",
            "modelAsString": false
          }
        },
        "alertType": {
          "description": "The type of the alert",
          "type": "string"
        },
        "appearedAtTime": {
          "format": "date-time",
          "description": "The UTC time at which the alert was raised",
          "type": "string"
        },
        "appearedAtSourceTime": {
          "format": "date-time",
          "description": "The source time at which the alert was raised",
          "type": "string"
        },
        "clearedAtTime": {
          "format": "date-time",
          "description": "The UTC time at which the alert was cleared",
          "type": "string"
        },
        "clearedAtSourceTime": {
          "format": "date-time",
          "description": "The source time at which the alert was cleared",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/AlertSource",
          "description": "The source at which the alert was raised"
        },
        "recommendation": {
          "description": "The recommended action for the issue raised in the alert",
          "type": "string"
        },
        "resolutionReason": {
          "description": "The reason for resolving the alert",
          "type": "string"
        },
        "severity": {
          "description": "The severity of the alert",
          "enum": [
            "Informational",
            "Warning",
            "Critical"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "AlertSeverity",
            "modelAsString": false
          }
        },
        "status": {
          "description": "The current status of the alert",
          "enum": [
            "Active",
            "Cleared"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "AlertStatus",
            "modelAsString": false
          }
        },
        "errorDetails": {
          "$ref": "#/$defs/AlertErrorDetails_2",
          "description": "The details of the error for which the alert was raised"
        },
        "detailedInformation": {
          "description": "More details about the alert",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "AlertSource": {
      "description": "The source details at which the alert was raised",
      "type": "object",
      "properties": {
        "name": {
          "description": "The name of the source",
          "type": "string"
        },
        "timeZone": {
          "description": "The time zone of the source",
          "type": "string"
        },
        "alertSourceType": {
          "description": "The source type of the alert",
          "enum": [
            "Resource",
            "Device"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "AlertSourceType",
            "modelAsString": false
          }
        }
      }
    },
    "Alert_3": {
      "description": "The alert.",
      "required": [
        "properties"
      ],
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/BaseModel"
        }
      ],
      "properties": {
        "properties": {
          "$ref": "#/$defs/AlertProperties_2",
          "description": "The properties of the alert.",
          "x-ms-client-flatten": true
        }
      }
    },
    "BaseModel": {
      "description": "Represents the base class for all other ARM object models",
      "type": "object",
      "properties": {
        "id": {
          "description": "The path ID that uniquely identifies the object.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The name of the object.",
          "type": "string",
          "readOnly": true
        },
        "type": {
          "description": "The hierarchical type of the object.",
          "type": "string",
          "readOnly": true
        },
        "kind": {
          "description": "The Kind of the object. Currently only Series8000 is supported",
          "enum": [
            "Series8000"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "Kind",
            "modelAsString": false
          }
        }
      }
    }
  }
}