Measure Get-SCOMDiscovery Execution Time (s)
Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.MeasureGetSCOMDiscovery.PowerShell.Script.Perf.Rule (Rule)
Measures the execution time for the command "Get-SCOMDiscovery" for correlation and performance issues.
Element properties:
Member Modules:
Source Code:
<Rule ID="Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.MeasureGetSCOMDiscovery.PowerShell.Script.Perf.Rule" Enabled="false" Target="SC!Microsoft.SystemCenter.ManagementServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Approved.System.Center.Operations.Manager.2016.Performance.Monitoring.MeasureGetSCOMDiscovery.PowerShell.Script.Perf.DS">
<TimeoutSeconds>120</TimeoutSeconds>
<IntervalSeconds>900</IntervalSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="System.Performance.DataGenericMapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>SDK-Performance</ObjectName>
<CounterName>Get-SCOMDiscovery</CounterName>
<InstanceName>Performance</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>