Client Monitoring System Error Group - Unique Users Affected Count Perf Collection rule

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

This rule enables collecting perf data related to total unique users affected per system error group

Knowledge Base article:

Summary

This rule is used internally for collecting perf data related to total unique users affected per system error group. This rule should not be overridden as it will have an adverse negative impact on monitoring.

Causes

This section is not applicable for this type of rule.

Resolutions

There is no user action for this type of rule.

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