Aplikace monitorování klienta – pravidlo nastavení chybového stavu monitorování podle počtu jedinečných ovlivněných uživatelů

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

Toto pravidlo aktivuje nastavení stavu monitorování na chybu na základě celkového počtu jedinečných ovlivněných uživatelů na aplikaci.

Knowledge Base article:

Souhrn

Toto pravidlo se interně používá k nastavení stavu monitorování na chybu na základě celkového počtu 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
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Scheduler Default
ErrorStateSetter WriteAction Microsoft.SystemCenter.CM.AEM.Internal.TargetSetErrorStateAction Default

Source Code:

<Rule ID="Microsoft.SystemCenter.CM.AEM.Internal.AppUserCountMonitorErrorStateSetter" Target="AEMLib!Microsoft.SystemCenter.CM.AEM.CrashListener" Enabled="false" 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="ErrorStateSetter" TypeID="Microsoft.SystemCenter.CM.AEM.Internal.TargetSetErrorStateAction">
<Query>DECLARE @TableName NVARCHAR(1000), @TableName2 NVARCHAR(1000), @Query NVARCHAR(1000);SELECT @TableName = ManagedTypeTableName FROM ManagedType WHERE TypeName = 'Microsoft.SystemCenter.CM.AEM.Application';SELECT @TableName2 = ManagedTypeTableName FROM ManagedType WHERE TypeName = 'Microsoft.SystemCenter.CM.AEM.MonitorOverride';SET @Query = N'select count(*), AR.SourceEntityId, IsNull(MO.UniqueUserThresholdValue, 50) from AemRelationship AR join [' + @TableName + '] A on AR.SourceEntityId = A.BaseManagedEntityId left join [' + @TableName2 + '] MO on AR.SourceEntityId = MO.ManagedEntityId where AR.RelationshipTypeId = 0 and AR.EntityTypeId = 0 group by AR.SourceEntityId, MO.UniqueUserThresholdValue';EXEC sp_executesql @Query</Query>
<MonitorId>$MPElement[Name="AEMViewsInternal!Microsoft.SystemCenter.CM.AEM.Views.Internal.UsersAffectedAppThreshold"]$</MonitorId>
<ManagedEntityId>Columns/Column[2]</ManagedEntityId>
<Value>Columns/Column[1]</Value>
<Threshold>Columns/Column[3]</Threshold>
</WriteAction>
</WriteActions>
</Rule>