{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-incident-result-list-schema.json",
  "title": "IncidentResultList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-anomalyalerting-api-openapi.yml#/components/schemas/IncidentResultList",
  "required": [
    "value"
  ],
  "type": "object",
  "properties": {
    "@nextLink": {
      "type": "string",
      "readOnly": true
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IncidentResult"
      }
    }
  },
  "$defs": {
    "IncidentProperty": {
      "required": [
        "maxSeverity"
      ],
      "type": "object",
      "properties": {
        "maxSeverity": {
          "description": "max severity of latest anomalies in the incident",
          "enum": [
            "Low",
            "Medium",
            "High"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "Severity",
            "modelAsString": true
          }
        },
        "incidentStatus": {
          "description": "incident status\n\nonly return for alerting incident result",
          "enum": [
            "Active",
            "Resolved"
          ],
          "type": "string",
          "readOnly": true,
          "x-ms-enum": {
            "name": "IncidentStatus",
            "modelAsString": true
          }
        },
        "valueOfRootNode": {
          "format": "double",
          "description": "value of the root node",
          "type": "number",
          "readOnly": true
        },
        "expectedValueOfRootNode": {
          "format": "double",
          "description": "expected value of the root node given by smart detector",
          "type": "number",
          "readOnly": true
        }
      }
    },
    "IncidentResult": {
      "required": [
        "incidentId",
        "lastTime",
        "property",
        "rootNode",
        "startTime"
      ],
      "type": "object",
      "properties": {
        "dataFeedId": {
          "format": "uuid",
          "description": "data feed unique id\n\nonly return for alerting anomaly result",
          "type": "string",
          "readOnly": true
        },
        "metricId": {
          "format": "uuid",
          "description": "metric unique id\n\nonly return for alerting incident result",
          "type": "string",
          "readOnly": true
        },
        "anomalyDetectionConfigurationId": {
          "format": "uuid",
          "description": "anomaly detection configuration unique id\n\nonly return for alerting incident result",
          "type": "string",
          "readOnly": true
        },
        "incidentId": {
          "description": "incident id",
          "type": "string"
        },
        "startTime": {
          "format": "date-time",
          "description": "incident start time",
          "type": "string"
        },
        "lastTime": {
          "format": "date-time",
          "description": "incident last time",
          "type": "string"
        },
        "rootNode": {
          "$ref": "#/$defs/SeriesIdentity"
        },
        "property": {
          "$ref": "#/$defs/IncidentProperty"
        }
      }
    },
    "SeriesIdentity": {
      "required": [
        "dimension"
      ],
      "type": "object",
      "properties": {
        "dimension": {
          "description": "dimension specified for series",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}