Aplicación de supervisión de cliente: regla de recopilación de rendimiento de recuentos totales de aciertos

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

Esta regla permite recopilar datos de rendimiento relacionados con los recuentos totales de aciertos por aplicación

Knowledge Base article:

Resumen

Esta regla se usa internamente para recopilar datos de rendimiento relacionados con los recuentos totales de aciertos por aplicación Esta regla no se debe invalidar, ya que tendrá un efecto negativo sobre la supervisión.

Causas

Esta sección se aplica a este tipo de regla.

Resoluciones

No se requiere la intervención del usuario para este tipo de regla.

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>