Azure Monitor · Schema

Condition

Application InsightsCloudLogsMetricsMonitoringObservability

Properties

Name Type Description
query string Log query alert query.
timeAggregation string Aggregation type.
metricMeasureColumn string The column containing the metric measure number.
resourceIdColumn string The column containing the resource ID.
dimensions array List of dimension conditions.
operator string The criteria operator.
threshold number The criteria threshold value that activates the alert.
failingPeriods object The minimum number of violations required within the selected lookback time window.
metricName string The name of the metric to be sent.
View JSON Schema on GitHub

JSON Schema

microsoft-azure-monitor-condition-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Condition",
  "title": "Condition",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Log query alert query."
    },
    "timeAggregation": {
      "type": "string",
      "enum": [
        "Count",
        "Average",
        "Minimum",
        "Maximum",
        "Total"
      ],
      "description": "Aggregation type."
    },
    "metricMeasureColumn": {
      "type": "string",
      "description": "The column containing the metric measure number."
    },
    "resourceIdColumn": {
      "type": "string",
      "description": "The column containing the resource ID."
    },
    "dimensions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Dimension"
      },
      "description": "List of dimension conditions."
    },
    "operator": {
      "type": "string",
      "enum": [
        "Equals",
        "GreaterThan",
        "GreaterThanOrEqual",
        "LessThan",
        "LessThanOrEqual"
      ],
      "description": "The criteria operator."
    },
    "threshold": {
      "type": "number",
      "format": "double",
      "description": "The criteria threshold value that activates the alert."
    },
    "failingPeriods": {
      "type": "object",
      "properties": {
        "numberOfEvaluationPeriods": {
          "type": "integer",
          "format": "int64",
          "description": "The number of aggregated lookback points.",
          "default": 1
        },
        "minFailingPeriodsToAlert": {
          "type": "integer",
          "format": "int64",
          "description": "The number of violations to trigger an alert.",
          "default": 1
        }
      },
      "description": "The minimum number of violations required within the selected lookback time window."
    },
    "metricName": {
      "type": "string",
      "description": "The name of the metric to be sent."
    }
  }
}