用戶端監視系統錯誤群組 - 總叫用次數效能集合規則

Microsoft.SystemCenter.CM.AEM.Internal.SystemBucketTotalHitCountPerfCollection (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.SystemBucketTotalHitCountPerfCollection" 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 sum(AC.HitCount), AC.SourceEntityId from AemCrashCounters AC join [' + @TableName + '] SB on AC.SourceEntityId = SB.BaseManagedEntityId where AC.EntityTypeId = 1 group by AC.SourceEntityId';EXEC sp_executesql @Query</Query>
<ObjectName>Bucket</ObjectName>
<CounterName>BucketErrorCount</CounterName>
<Value>Columns/Column[1]</Value>
<ManagedEntityId>Columns/Column[2]</ManagedEntityId>
<RuleId>$MPElement[Name="AEMViewsInternal!Microsoft.SystemCenter.CM.AEM.Views.Internal.SystemBucketTotalHitCountPerfCollector"]$</RuleId>
</WriteAction>
</WriteActions>
</Rule>