ManagementGroup::GetMonitoringRules<T> Method (ManagementPackRuleCriteria^, ICollection<T>^)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.Namespace:
Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Return to top
Retrieves the monitoring rules that match the specified filter and that target the specified monitoring objects.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
public: generic<typename T> where T : PartialMonitoringObject [ObsoleteAttribute("Please use Monitoring.GetRules<T>()")] ReadOnlyCollection<MonitoringRule^>^ GetMonitoringRules( ManagementPackRuleCriteria^ criteria, ICollection<T>^ monitoringObjects )
Parameters
- criteria
-
Type:
Microsoft.EnterpriseManagement.Configuration::ManagementPackRuleCriteria^
A value that specifies the kind of monitoring rules.
- monitoringObjects
-
Type:
System.Collections.Generic::ICollection<T>^
The monitoring reports that target these specified monitoring object instances.
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<MonitoringRule^>^Returns aReadOnlyCollection<T> object ofMonitoringRule objects.
Type Parameters
- T
Must be of type PartialMonitoringObject.
Show: