套用 Web 應用程式設定

Microsoft.SystemCenter.Apm.WebApplicationInstance.ApplyConfigurationRule (Rule)

Knowledge Base article:

摘要

此規則會套用應用程式的監視設定。

Element properties:

TargetMicrosoft.SystemCenter.Apm.WebApplicationInstance
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableFalse

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.SimpleScheduler Default
WriteAction WriteAction Microsoft.SystemCenter.Apm.WebApplicationInstance.ApplyConfiguration System.PrivilegedMonitoringAccount

Source Code:

<Rule ID="Microsoft.SystemCenter.Apm.WebApplicationInstance.ApplyConfigurationRule" Enabled="true" ConfirmDelivery="false" Target="Microsoft.SystemCenter.Apm.WebApplicationInstance" Remotable="false">
<Category>Custom</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.SimpleScheduler">
<IntervalSeconds>86400</IntervalSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteAction" TypeID="Microsoft.SystemCenter.Apm.WebApplicationInstance.ApplyConfiguration" RunAs="System!System.PrivilegedMonitoringAccount">
<Id>$Target/Id$</Id>
<ApplicationName>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ApplicationName$</ApplicationName>
<IISApplicationPath>$Target/Property[Type="Microsoft.SystemCenter.Apm.WebApplicationInstance"]/IISApplicationPath$</IISApplicationPath>
<NamespacesData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/Namespaces$</NamespacesData>
<ResourcesData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/Resources$</ResourcesData>
<ExcTrackingsData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/ExceptionTrackings$</ExcTrackingsData>
<ExcHandlersData>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/ExceptionHandlers$</ExcHandlersData>
<PerformanceThreshold>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/PerformanceThreshold$</PerformanceThreshold>
<SensitivityThreshold>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/SensitivityThreshold$</SensitivityThreshold>
<CollectAllExceptions>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstance"]/CollectAllExceptions$</CollectAllExceptions>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
<ManagementGroupId>$Target/ManagementGroup/Id$</ManagementGroupId>
<ApplicationGroupName>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ApplicationGroupName$</ApplicationGroupName>
</WriteAction>
</WriteActions>
</Rule>