Insights Classic Metric Alert Monitor

Microsoft.SystemCenter.MicrosoftAzure.Insights.AlertRule.Incident.Monitor (UnitMonitor)

Microsoft Azure insights classic alert rule incidents monitor.

Knowledge Base article:

Summary

The monitor changes the state of the classic alert rule depending on the information received from Azure event log.

If the latest received event corresponds to opening of the alert, the state of the classic alert rule changes to unhealthy. The state of the classic alert rule switches to healthy only if the latest received event corresponds to closing of the alert. Therefore, upon initial activation of the monitor, the classic alert rule will remain in healthy state until a corresponding event is received. At that, the state of the classic alert rule is displayed as healthy if the alert rule is disabled.

Causes

An alert condition configured in Microsoft Azure is active

Element properties:

TargetMicrosoft.SystemCenter.MicrosoftAzure.Insights.AlertRule
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.MicrosoftAzure.Insights.AlertRule.Incident.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Rule {0} has been Activated

Insights Alert Rule {0} has been Activated.

Subscription {1} ({2}).

Alert Rule Id: {3}.

Status: {4}.

Referenced resource: {5}.

Description: {6}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.MicrosoftAzure.Insights.AlertRule.Incident.Monitor" Accessibility="Public" Enabled="false" Target="Microsoft.SystemCenter.MicrosoftAzure.Insights.AlertRule" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.MicrosoftAzure.Insights.AlertRule.Incident.MonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.MicrosoftAzure.Insights.AlertRule.Incident.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.AzureServiceGeneric"]/ServiceName$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/SubscriptionId$</AlertParameter2>
<AlertParameter3>$Target/Host/Host/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter3>
<AlertParameter4>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.AzureServiceGeneric"]/ServiceId$</AlertParameter4>
<AlertParameter5>$Data/Context/Property[@Name='Status']$</AlertParameter5>
<AlertParameter6>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Insights.AlertRule"]/TargetResource$</AlertParameter6>
<AlertParameter7>$Data/Context/Property[@Name='Description']$</AlertParameter7>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Critical" MonitorTypeStateID="Critical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<TimeoutSeconds>30</TimeoutSeconds>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>