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:

Successful request for one alert rule related incident

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
getselectresourceGroupName, ruleName, incidentName, subscriptionIdGets an incident associated to an alert rule
list_by_alert_ruleselectresourceGroupName, ruleName, subscriptionIdGets 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
incidentNamestringThe name of the incident to retrieve.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
ruleNamestringThe name of the rule.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets an incident associated to an alert rule

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