클라이언트 모니터링 응용 프로그램 - 총 적중 횟수 성능 수집 규칙

Microsoft.SystemCenter.CM.AEM.Internal.AppTotalHitCountPerfCollection (Rule)

이 규칙은 응용 프로그램마다 총 적중 횟수와 관련된 성능 데이터를 수집할 수 있도록 합니다.

Knowledge Base article:

요약

이 규칙은 응용 프로그램당 총 적중 횟수와 관련된 성능 데이터를 수집하는 데 내부적으로 사용됩니다. 이 규칙은 모니터링에 부정적인 영향을 가져오므로 재정의하면 안 됩니다.

원인

이러한 종류의 규칙에 해당되지 않는 섹션입니다.

해결 방법

이러한 종류의 규칙에 대한 사용자 작업은 없습니다.

Element properties:

TargetMicrosoft.SystemCenter.CM.AEM.CrashListener
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
PerfDataWriter WriteAction Microsoft.SystemCenter.CM.AEM.Internal.MapQueriedPerfData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.CM.AEM.Internal.AppTotalHitCountPerfCollection" Target="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener" Enabled="true" ConfirmDelivery="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Minutes">15</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="PerfDataWriter" TypeID="Microsoft.SystemCenter.CM.AEM.Internal.MapQueriedPerfData">
<Query>DECLARE @TableName NVARCHAR(1000), @Query NVARCHAR(1000);SELECT @TableName = ManagedTypeTableName FROM ManagedType WHERE TypeName = 'Microsoft.SystemCenter.CM.AEM.Application';SET @Query = N'select sum(HitCount), SourceEntityId from AemCrashCounters AC join [' + @TableName + '] A on AC.SourceEntityId = A.BaseManagedEntityId where EntityTypeId = 0 group by SourceEntityId';EXEC sp_executesql @Query</Query>
<ObjectName>Application</ObjectName>
<CounterName>ApplicationErrorCount</CounterName>
<Value>Columns/Column[1]</Value>
<ManagedEntityId>Columns/Column[2]</ManagedEntityId>
<RuleId>$MPElement[Name="AEMViewsInternal!Microsoft.SystemCenter.CM.AEM.Views.Internal.AppTotalHitCountPerfCollector"]$</RuleId>
</WriteAction>
</WriteActions>
</Rule>