Insights Metric Alert Monitor

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

Microsoft Azure insights metric alert incidents monitor.

Knowledge Base article:

Summary

The monitor changes the state of the metric alert depending on the information received from Azure REST API.

Causes

A metric alert condition configured in Microsoft Azure is active.

Element properties:

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

Subscription Id: {1} ({2})

Resource: {3}

{4}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.MicrosoftAzure.Insights.MetricAlert.Incident.Monitor" TypeID="Microsoft.SystemCenter.MicrosoftAzure.Insights.MetricAlert.Incident.MonitorType" Accessibility="Public" Enabled="false" Target="Microsoft.SystemCenter.MicrosoftAzure.Insights.MetricAlert" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.MicrosoftAzure.Insights.MetricAlert.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>$Data/Context/Property[@Name='ResourceUri']$</AlertParameter4>
<AlertParameter5>$Data/Context/Property[@Name='Description']$</AlertParameter5>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Critical" MonitorTypeStateID="Critical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<TimeoutSeconds>300</TimeoutSeconds>
<IntervalSeconds>300</IntervalSeconds>
<TimeRange>720</TimeRange>
</Configuration>
</UnitMonitor>