Skip to main content

alert_rule_incidents

Creates, updates, deletes, gets or lists a alert_rule_incidents resource.

Overview

Namealert_rule_incidents
TypeResource
Idazure.monitor.alert_rule_incidents

Fields

NameDatatypeDescription
namestringIncident name.
activatedTimestringThe time at which the incident was activated in ISO8601 format.
isActivebooleanA boolean to indicate whether the incident is active or resolved.
resolvedTimestringThe time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.
ruleNamestringRule name that is associated with the incident.

Methods

NameAccessible byRequired ParamsDescription
getSELECTincidentName, resourceGroupName, ruleName, subscriptionIdGets an incident associated to an alert rule
list_by_alert_ruleSELECTresourceGroupName, ruleName, subscriptionIdGets a list of incidents associated to an alert rule

SELECT examples

Gets a list of incidents associated to an alert rule

SELECT
name,
activatedTime,
isActive,
resolvedTime,
ruleName
FROM azure.monitor.alert_rule_incidents
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND ruleName = '{{ ruleName }}'
AND subscriptionId = '{{ subscriptionId }}';