Analyse des performances des applications .NET

Microsoft.SystemCenter.Apm.ApplicationTemplate.Template (Template)

Ce modèle vous permet d'analyser les applications ASP.NET et WCF hébergées dans IIS 7.0, IIS 8.0 et IIS 9.0, en plus des services Windows qui utilisent Microsoft.NET Framework. Pour analyser les applications ASP.NET et les services web, vous devez installer et importer le pack d'administration Windows Server 2008 Internet Information Services 7.0, le pack d'administration Windows Server 2012 Internet Information Services 8.0 ou le pack d'administration Microsoft Windows Server Technical Preview Internet Information Services 9. Pour utiliser ce modèle pour analyser un service Windows basé sur .NET Framework avec la fonction APM, vous devez installer le pack d'administration Windows Service Library et vous devez ajouter l'analyse de base du service à l'aide d'un modèle d'analyse de service Windows.

Source Code:

<Template ID="Microsoft.SystemCenter.Apm.ApplicationTemplate.Template">
<Configuration>
<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="TypeId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="AppChunk1" type="xsd:string"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="SC"/>
<Reference ID="AI"/>
<Reference ID="Self"/>
<Reference ID="ApplicationMonitoring"/>
<Reference ID="InstanceGroup"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$" Base="$Reference/Self$Microsoft.SystemCenter.Apm.ApplicationTemplate" Abstract="false" Accessibility="Public" Hosted="false" Singleton="true"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$.Rule" Enabled="true" Target="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$Reference/ApplicationMonitoring$Microsoft.SystemCenter.ApplicationMonitoring.Net.ApplicationComponentGroup"/>
</DiscoveryTypes>
<DataSource ID="Discovery" TypeID="$Reference/Self$Microsoft.SystemCenter.Apm.ApplicationTemplate.DataSource">
<IntervalSeconds>21600</IntervalSeconds>
<AppChunk1>$TemplateConfig/AppChunk1$</AppChunk1>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$">
<Name>Application Group: $TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
<DisplayString ElementID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$.Rule">
<Name>Create objects tree rule</Name>
<Description>Create objects tree rule</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>