PartialMonitoringObjectBase::GetMonitoringAlertsCount Method (MonitoringAlertCriteria^, ManagementPackClass^, TraversalDepth)

 

Applies To: Operations Manager for System Center 2012

Gets the number of monitoring alerts that are related to this monitoring object and that meet the specified criteria.

Namespace:   Microsoft.EnterpriseManagement.Monitoring
Assembly:  Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

public:
int GetMonitoringAlertsCount(
	MonitoringAlertCriteria^ criteria,
	ManagementPackClass^ managementPackClass,
	TraversalDepth traversalDepth
)

Parameters

criteria
Type: Microsoft.EnterpriseManagement.Monitoring::MonitoringAlertCriteria^

The criteria that filters the alerts. Only alerts that match the criteria are counted. For information about the criteria syntax, see Operations Manager Data Queries Overview.

managementPackClass
Type: Microsoft.EnterpriseManagement.Configuration::ManagementPackClass^

Only alerts that are related to this monitoring class are counted.

traversalDepth
Type: Microsoft.EnterpriseManagement.Common::TraversalDepth

A value that specifies the scope of the counted results. A value of OneLevel includes only instances of the specified class in the scope of the counted results. A value of Recursive includes instances of the specified class and all instances that are contained by those instances.

Return Value

Type: System::Int32

Returns a Int32 value.

Return to top
Show: