Skip to main content

alert_rule_incidents

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

Overview

Namealert_rule_incidents
TypeResource
Idazure.monitor.alert_rule_incidents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIncident name.
activatedTimestring (date-time)The time at which the incident was activated in ISO8601 format.
isActivebooleanA boolean to indicate whether the incident is active or resolved.
resolvedTimestring (date-time)The 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, rule_name, incident_name, subscription_idGets an incident associated to an alert rule.
list_by_alert_ruleselectresource_group_name, rule_name, subscription_idGets a list of incidents associated to an alert rule.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
incident_namestringThe name of the incident to retrieve. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
rule_namestringThe name of the rule. Required.
subscription_idstring

SELECT examples

Gets an incident associated to an alert rule.

SELECT
name,
activatedTime,
isActive,
resolvedTime,
ruleName
FROM azure.monitor.alert_rule_incidents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND rule_name = '{{ rule_name }}' -- required
AND incident_name = '{{ incident_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;