Ta reguła umożliwia zbieranie danych o wydajności powiązanych z całkowitą liczbą unikatowych maszyn, których do dotyczy, według aplikacji
Ta reguła jest używana wewnętrznie do zbierania danych o wydajności związanych z całkowitą liczbą unikatowych maszyn, których to dotyczy, na aplikację. Nie należy zastępować tej zasady, ponieważ miałoby to niekorzystny wpływ na monitorowanie.
Ta sekcja nie ma zastosowania do tego typu zasad.
Brak akcji użytkownika dla tego typu zasad.
Target | Microsoft.SystemCenter.CM.AEM.CrashListener |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
Scheduler | DataSource | System.Scheduler | Default |
PerfDataWriter | WriteAction | Microsoft.SystemCenter.CM.AEM.Internal.MapQueriedPerfData | Default |
<Rule ID="Microsoft.SystemCenter.CM.AEM.Internal.AppMachineCountPerfCollection" 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 = 1 and EntityTypeId = 0 group by SourceEntityId';EXEC sp_executesql @Query</Query>
<ObjectName>Application</ObjectName>
<CounterName>ApplicationUniqueMachinesAffected</CounterName>
<Value>Columns/Column[1]</Value>
<ManagedEntityId>Columns/Column[2]</ManagedEntityId>
<RuleId>$MPElement[Name="AEMViewsInternal!Microsoft.SystemCenter.CM.AEM.Views.Internal.AppMachineCountPerfCollector"]$</RuleId>
</WriteAction>
</WriteActions>
</Rule>