Protection Status

QND.OMS.Recovery.Item.ProtectionStatus.Monitor (UnitMonitor)

Element properties:

TargetQND.OMS.Recovery.Vault.ProtectedItem
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeQND.OMS.Recovery.ItemStatusGeneric.MT
RemotableTrue
AccessibilityPublic
Alert Message
QND - Azure Backup protected item is unhealthy
The current value for {1} is {0}
RunAsDefault

Source Code:

<UnitMonitor ID="QND.OMS.Recovery.Item.ProtectionStatus.Monitor" Accessibility="Public" Enabled="true" Target="QND.OMS.Recovery.Vault.ProtectedItem" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="QND.OMS.Recovery.ItemStatusGeneric.MT" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="QND.OMS.Recovery.Item.StatusGeneric.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name="ProtectionStatus"]$</AlertParameter1>
<AlertParameter2>Protection Status</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Unhealthy" MonitorTypeStateID="Unhealthy" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ItemId>$Target/Property[Type="QND.OMS.Recovery.Vault.ProtectedItem"]/Id$</ItemId>
<IntervalSeconds>1807</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>900</TimeoutSeconds>
<TraceLevel>3</TraceLevel>
<ClientId>$Target/Host/Host/Host/Property[Type="Azure!Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ClientId$</ClientId>
<SubscriptionId>$Target/Host/Host/Host/Property[Type="Azure!Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/SubscriptionId$</SubscriptionId>
<Proxy>$Target/Host/Host/Host/Property[Type="Azure!Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ProxyServerAddress$</Proxy>
<AuthBaseAddress>$Target/Host/Host/Host/Property[Type="Azure!Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/Authority$</AuthBaseAddress>
<ResourceBaseAddress>$Target/Host/Host/Host/Property[Type="Azure!Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ArmServiceUri$</ResourceBaseAddress>
<AADUserName>$RunAs[Name="Azure!Microsoft.SystemCenter.MicrosoftAzure.RunAsProfile.ADCredentials"]/UserName$</AADUserName>
<AADPassword>$RunAs[Name="Azure!Microsoft.SystemCenter.MicrosoftAzure.RunAsProfile.ADCredentials"]/Password$</AADPassword>
<ResourceURI>$Target/Host/Host/Property[Type="QNDA!QND.Azure.GenericService"]/ServiceId$</ResourceURI>
<APIVersion>$Target/Host/Host/Property[Type="QNDA!QND.Azure.GenericService"]/ApiVersion$</APIVersion>
<LastNJobs>5</LastNJobs>
<MaxFailures>1</MaxFailures>
<!--.net regex doesn't parse ^(?!Completed).*$ -->
<FailureCondition>Failed</FailureCondition>
<AutoMaxAgeHours>0</AutoMaxAgeHours>
<FixedMaxAgeHours>24</FixedMaxAgeHours>
<LookbackDays>15</LookbackDays>
<Tolerance>0.5</Tolerance>
<Property>ProtectionStatus</Property>
<HealthyValue>Healthy</HealthyValue>
</Configuration>
</UnitMonitor>