Count Objects returned by Get-SCOMRule

Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.CountGetSCOMRule.PowerShell.Script.Perf.Rule (Rule)

Counts the objects returned for the command "Get-SCOMRule" for statistics and correlation.

Element properties:

TargetMicrosoft.SystemCenter.RootManagementServer
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.CountGetSCOMRule.PowerShell.Script.Perf.DS Default
System.Performance.DataGenericMapper ConditionDetection System.Performance.DataGenericMapper Default
Microsoft.SystemCenter.CollectPerformanceData WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.CountGetSCOMRule.PowerShell.Script.Perf.Rule" Enabled="false" Target="SC!Microsoft.SystemCenter.RootManagementServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.CountGetSCOMRule.PowerShell.Script.Perf.DS">
<TimeoutSeconds>120</TimeoutSeconds>
<IntervalSeconds>86400</IntervalSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="System.Performance.DataGenericMapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>SDK-Performance</ObjectName>
<CounterName>Get-SCOMRule</CounterName>
<InstanceName>Statistics</InstanceName>
<Value>$Data/Property[@Name='Metric']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="Microsoft.SystemCenter.CollectPerformanceData" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>