Microsoft SystemCenter Microsoft Azure Generate Alert

Microsoft.SystemCenter.MicrosoftAzure.GenerateAlert (WriteActionModuleType)

Microsoft SystemCenter Microsoft Azure Generate Alert.

Element properties:

TypeWriteActionModuleType
IsolationAny
AccessibilityPublic
RunAsSystem.PrivilegedMonitoringAccount
InputTypeSystem.BaseData

Member Modules:

ID Module Type TypeId RunAs 
CDCritical ConditionDetection System.ExpressionFilter Default
WA WriteAction System.Health.GenerateAlert Default

Source Code:

<WriteActionModuleType ID="Microsoft.SystemCenter.MicrosoftAzure.GenerateAlert" Accessibility="Public" Batching="true" RunAs="System!System.PrivilegedMonitoringAccount">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>Health!System.Health.AlertSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Priority">
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Severity">
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</Configuration>
<ModuleImplementation>
<Composite>
<MemberModules>
<ConditionDetection ID="CDCritical" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Status']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Activated</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteAction ID="WA" TypeID="Health!System.Health.GenerateAlert">
<Priority>$Config/Priority$</Priority>
<Severity>$Config/Severity$</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SystemCenter.MicrosoftAzure.GenerateAlert.AlertMessage"]$</AlertMessageId>
<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/Property[@Name='ResourceUri']$</AlertParameter4>
<AlertParameter5>$Data/Property[@Name='Description']$</AlertParameter5>
<AlertParameter6>$Data/Property[@Name='TargetResourceIds']$</AlertParameter6>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Property[@Name='ResourceUri']$</SuppressionValue>
</Suppression>
</WriteAction>
</MemberModules>
<Composition>
<Node ID="WA">
<Node ID="CDCritical"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<InputType>System!System.BaseData</InputType>
</WriteActionModuleType>