Aplikace monitorování klienta – pravidlo shromažďování výkonu podle počtu jedinečných ovlivněných uživatelů

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

Toto pravidlo aktivuje shromažďování údajů o výkonu vzhledem k celkovému počtu jedinečných ovlivněných uživatelů na aplikaci.

Knowledge Base article:

Souhrn

Toto pravidlo se interně používá k shromažďování údajů o výkonu vzhledem k celkovému počtu jedinečných ovlivněných uživatelů na aplikaci. Toto pravidlo by nemělo být přepsáno, jinak bude mít negativní dopad na monitorování.

Příčiny

Tento oddíl není použitelný pro tento typ pravidla.

Řešení

Pro tento typ pravidla není k dispozici žádná akce uživatele.

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.AppUserCountPerfCollection" 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 count(*), SourceEntityId from AemRelationship AR join [' + @TableName + '] A on AR.SourceEntityId = A.BaseManagedEntityId where RelationshipTypeId = 0 and EntityTypeId = 0 group by SourceEntityId';EXEC sp_executesql @Query</Query>
<ObjectName>Application</ObjectName>
<CounterName>ApplicationUniqueUsersAffected</CounterName>
<Value>Columns/Column[1]</Value>
<ManagedEntityId>Columns/Column[2]</ManagedEntityId>
<RuleId>$MPElement[Name="AEMViewsInternal!Microsoft.SystemCenter.CM.AEM.Views.Internal.AppUserCountPerfCollector"]$</RuleId>
</WriteAction>
</WriteActions>
</Rule>