Aplicação de Monitorização de Cliente - Regra de Recolha de Desempenho de Contagens de Acessos Totais

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

Esta regra permite recolher dados de desempenho relacionados com contagens de acessos totais por aplicação

Knowledge Base article:

Resumo

Esta regra é utilizada internamente para recolher dados de desempenho relacionados com contagens de acessos totais por aplicação. Esta regra não deve ser substituída, na medida em que pode ter um impacto adverso negativo na monitorização.

Causas

Esta secção não se aplica a este tipo de regra.

Resoluções

Não existe ação do utilizador para este tipo de regra.

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>