Visual Studio Web Test Monitoring

Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer.Template (Template)


This template allows you to add monitoring for Visual Studio Web Tests and run these monitoring tests from external locations.

Source Code:

<Template ID="Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer.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="VSDeclarativeTestConfigs" 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.Omonline.OutsideIn.VSWebTest.VSWebTestContainerUiTemplate.$TemplateConfig/TypeId$" Base="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainerUiTemplate" Abstract="false" Accessibility="Public" Hosted="false" Singleton="true"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.$TemplateConfig/TypeId$.VSWebTestContainerDiscovery" Enabled="onEssentialMonitoring" Target="Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainerUiTemplate.$TemplateConfig/TypeId$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"/>
<DiscoveryRelationship TypeID="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer.IsMemberOf.VSWebTestContainerUiTemplate"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.SnapshotDiscovery.DS">
<IntervalSeconds>86400</IntervalSeconds>
<ClassId>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]$</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.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/InstanceId$</Name>
<Value>$TemplateConfig/TypeId$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/Locations$</Name>
<Value>$TemplateConfig/Locations$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/VSDeclarativeTestConfigs$</Name>
<Value>$TemplateConfig/VSDeclarativeTestConfigs$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/TestConfig$</Name>
<Value>$TemplateConfig/TestConfig$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/IntervalInSeconds$</Name>
<Value>$TemplateConfig/IntervalInSeconds$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/Alerting$</Name>
<Value>$TemplateConfig/Alerting$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/AlertingOnTest$</Name>
<Value>$TemplateConfig/AlertingOnTest$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/ConsecutiveMatchCount$</Name>
<Value>$TemplateConfig/ConsecutiveMatchCount$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/ConfigHash$</Name>
<Value>00000000-0000-0000-0000-000000000000</Value>
</Setting>
</Settings>
</ClassInstanceSettings>
<RelationshipId>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer.IsMemberOf.VSWebTestContainerUiTemplate"]$</RelationshipId>
<SourceTypeId>$MPElement[Name="Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainerUiTemplate.$TemplateConfig/TypeId$"]$</SourceTypeId>
<TargetTypeId>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]$</TargetTypeId>
<TargetRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.VSWebTestContainer"]/InstanceId$</Name>
<Value>$TemplateConfig/TypeId$</Value>
</Setting>
</Settings>
</TargetRoleSettings>
<UniquenessKey>$TemplateConfig/TypeId$;$TemplateConfig/Name$;$TemplateConfig/Description$;$TemplateConfig/VSDeclarativeTestConfigs$;$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.Omonline.OutsideIn.VSWebTest.VSWebTestContainerUiTemplate.$TemplateConfig/TypeId$">
<Name>Multi-URL Template ($TemplateConfig/Name$)</Name>
</DisplayString>
<DisplayString ElementID="Microsoft.SystemCenter.Omonline.OutsideIn.VSWebTest.$TemplateConfig/TypeId$.VSWebTestContainerDiscovery">
<Name>Multi-URL Template Discovery ($TemplateConfig/Name$)</Name>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>