Web Application Availability Monitoring

Microsoft.SystemCenter.WebApplicationSolutions.SingleUrl.Template (Template)


This template allows you to create availability monitoring tests for one or more Web Application URLs and run these monitoring tests from internal or external locations.

Source Code:

<Template ID="Microsoft.SystemCenter.WebApplicationSolutions.SingleUrl.Template">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TypeId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Name" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Description" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Parameters" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Locations" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalInSeconds" type="xsd:unsignedInt"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TestConfig" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Alerting" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="AlertingOnTest" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ConsecutiveMatchCount" type="xsd:unsignedInt"/>
</Configuration>
<References>
<Reference ID="Self"/>
<Reference ID="System"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlUiTemplate.$TemplateConfig/TypeId$" Base="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlUiTemplate" Abstract="false" Accessibility="Public" Hosted="false" Singleton="true"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Microsoft.SystemCenter.WebApplicationSolutions.$TemplateConfig/TypeId$.SingleUrlTestDiscovery" Enabled="onEssentialMonitoring" Target="Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlUiTemplate.$TemplateConfig/TypeId$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"/>
<DiscoveryRelationship TypeID="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest.IsMemberOf.SingleUrlUiTemplate"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SnapshotDiscovery.DS">
<IntervalSeconds>86400</IntervalSeconds>
<ClassId>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]$</ClassId>
<ClassInstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="$Reference/System$System.Entity"]/DisplayName$</Name>
<Value>$TemplateConfig/Name$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/InstanceId$</Name>
<Value>$TemplateConfig/TypeId$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/Locations$</Name>
<Value>$TemplateConfig/Locations$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/Parameters$</Name>
<Value>$TemplateConfig/Parameters$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/TestConfig$</Name>
<Value>$TemplateConfig/TestConfig$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/IntervalInSeconds$</Name>
<Value>$TemplateConfig/IntervalInSeconds$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/Alerting$</Name>
<Value>$TemplateConfig/Alerting$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/AlertingOnTest$</Name>
<Value>$TemplateConfig/AlertingOnTest$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/ConsecutiveMatchCount$</Name>
<Value>$TemplateConfig/ConsecutiveMatchCount$</Value>
</Setting>
</Settings>
</ClassInstanceSettings>
<RelationshipId>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest.IsMemberOf.SingleUrlUiTemplate"]$</RelationshipId>
<SourceTypeId>$MPElement[Name="Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlUiTemplate.$TemplateConfig/TypeId$"]$</SourceTypeId>
<TargetTypeId>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]$</TargetTypeId>
<TargetRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlTest"]/InstanceId$</Name>
<Value>$TemplateConfig/TypeId$</Value>
</Setting>
</Settings>
</TargetRoleSettings>
<UniquenessKey>$TemplateConfig/TypeId$;$TemplateConfig/Name$;$TemplateConfig/Description$;$TemplateConfig/Parameters$;$TemplateConfig/Locations$;$TemplateConfig/IntervalInSeconds$;$TemplateConfig/TestConfig$;$TemplateConfig/Alerting$;$TemplateConfig/AlertingOnTest$;$TemplateConfig/ConsecutiveMatchCount$</UniquenessKey>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Microsoft.SystemCenter.WebApplicationSolutions.SingleUrlUiTemplate.$TemplateConfig/TypeId$">
<Name>Multi-URL Template ($TemplateConfig/Name$)</Name>
</DisplayString>
<DisplayString ElementID="Microsoft.SystemCenter.WebApplicationSolutions.$TemplateConfig/TypeId$.SingleUrlTestDiscovery">
<Name>Multi-URL Template Discovery ($TemplateConfig/Name$)</Name>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>