{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-anomaly-result-list-schema.json",
  "title": "AnomalyResultList",
  "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/AnomalyResultList",
  "required": [
    "value"
  ],
  "type": "object",
  "properties": {
    "@nextLink": {
      "type": "string",
      "readOnly": true
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnomalyResult"
      }
    }
  },
  "$defs": {
    "AnomalyProperty": {
      "required": [
        "anomalySeverity"
      ],
      "type": "object",
      "properties": {
        "anomalySeverity": {
          "description": "anomaly severity",
          "enum": [
            "Low",
            "Medium",
            "High"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "Severity",
            "modelAsString": true
          }
        },
        "anomalyStatus": {
          "description": "anomaly status\n\nonly return for alerting anomaly result",
          "enum": [
            "Active",
            "Resolved"
          ],
          "type": "string",
          "readOnly": true,
          "x-ms-enum": {
            "name": "AnomalyStatus",
            "modelAsString": true
          }
        },
        "value": {
          "format": "double",
          "description": "value of the anomaly",
          "type": "number",
          "readOnly": true
        },
        "expectedValue": {
          "format": "double",
          "description": "expected value of the anomaly given by smart detector",
          "type": "number",
          "readOnly": true
        }
      }
    },
    "AnomalyResult": {
      "required": [
        "dimension",
        "property",
        "timestamp"
      ],
      "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 anomaly result",
          "type": "string",
          "readOnly": true
        },
        "anomalyDetectionConfigurationId": {
          "format": "uuid",
          "description": "anomaly detection configuration unique id\n\nonly return for alerting anomaly result",
          "type": "string",
          "readOnly": true
        },
        "timestamp": {
          "format": "date-time",
          "description": "anomaly time",
          "type": "string"
        },
        "createdTime": {
          "format": "date-time",
          "description": "created time\n\nonly return for alerting result",
          "type": "string",
          "readOnly": true
        },
        "modifiedTime": {
          "format": "date-time",
          "description": "modified time\n\nonly return for alerting result",
          "type": "string",
          "readOnly": true
        },
        "dimension": {
          "description": "dimension specified for series",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "property": {
          "$ref": "#/$defs/AnomalyProperty"
        }
      }
    }
  }
}