Share via


ManagementGroup.GetMonitoringAlertsCount Method

Definition

Retrieves the number of MonitoringAlertobjects.

Overloads

GetMonitoringAlertsCount(MonitoringAlertCriteria, MonitoringClass)
Obsolete.

Retrieves count of all the MonitoringAlert objects in the management group.

GetMonitoringAlertsCount(MonitoringClass, TraversalDepth)
Obsolete.

Retrieves count of all the MonitoringAlert objects in the management group.

GetMonitoringAlertsCount(MonitoringAlertCriteria, MonitoringClass, TraversalDepth)
Obsolete.

Retrieves count of all the MonitoringAlert objects in the management group.

GetMonitoringAlertsCount(MonitoringClass)
Obsolete.

Retrieves count of all the MonitoringAlert objects in the management group.

GetMonitoringAlertsCount()
Obsolete.
Obsolete.

Retrieves count of all the MonitoringAlert objects in the management group.

GetMonitoringAlertsCount(MonitoringAlertCriteria)
Obsolete.

Retrieves count of all the MonitoringAlert objects in the management group.

GetMonitoringAlertsCount(MonitoringAlertCriteria, MonitoringClass)

Caution

Please use OperationalData.GetMonitoringAlertsCount()

Retrieves count of all the MonitoringAlert objects in the management group.

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass);
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount()")]
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Configuration.MonitoringClass -> int
Public Function GetMonitoringAlertsCount (criteria As MonitoringAlertCriteria, monitoringClass As MonitoringClass) As Integer

Parameters

criteria
MonitoringAlertCriteria

The criteria to scope the method by.

monitoringClass
MonitoringClass

The monitoring class, and all its derived classes, to scope the method by.

Returns

The count.

Attributes

Applies to

GetMonitoringAlertsCount(MonitoringClass, TraversalDepth)

Caution

Please use OperationalData.GetMonitoringAlertsCount()

Retrieves count of all the MonitoringAlert objects in the management group.

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount()")]
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Configuration.MonitoringClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (monitoringClass As MonitoringClass, traversalDepth As TraversalDepth) As Integer

Parameters

monitoringClass
MonitoringClass

The monitoring class, and all its derived classes, to scope the method by.

traversalDepth
TraversalDepth

The traversal depth for instances. One level implies just the instance of the given class, recursive is all instances contained by those instances as well.

Returns

The count.

Attributes

Applies to

GetMonitoringAlertsCount(MonitoringAlertCriteria, MonitoringClass, TraversalDepth)

Caution

Please use OperationalData.GetMonitoringAlertsCount()

Retrieves count of all the MonitoringAlert objects in the management group.

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount()")]
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Configuration.MonitoringClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (criteria As MonitoringAlertCriteria, monitoringClass As MonitoringClass, traversalDepth As TraversalDepth) As Integer

Parameters

criteria
MonitoringAlertCriteria

The criteria to scope the method by.

monitoringClass
MonitoringClass

The monitoring class, and all its derived classes, to scope the method by.

traversalDepth
TraversalDepth

The traversal depth for instances. One level implies just the instance of the given class, recursive is all instances contained by those instances as well.

Returns

The count.

Attributes

Applies to

GetMonitoringAlertsCount(MonitoringClass)

Caution

Please use OperationalData.GetMonitoringAlertsCount()

Retrieves count of all the MonitoringAlert objects in the management group.

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Configuration::MonitoringClass ^ monitoringClass);
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount()")]
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Configuration.MonitoringClass monitoringClass);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Configuration.MonitoringClass -> int
Public Function GetMonitoringAlertsCount (monitoringClass As MonitoringClass) As Integer

Parameters

monitoringClass
MonitoringClass

The monitoring class, and all its derived classes, to scope the method by.

Returns

The count.

Attributes

Applies to

GetMonitoringAlertsCount()

Caution

Please use OperationalData.GetMonitoringAlertsCount(MonitoringAlertCriteria.Empty)

Caution

Please use OperationalData.GetMonitoringAlertsCount(MonitoringAlertCriteria.Empty, null)

Retrieves count of all the MonitoringAlert objects in the management group.

public:
 int GetMonitoringAlertsCount();
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount(MonitoringAlertCriteria.Empty)")]
public int GetMonitoringAlertsCount ();
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount(MonitoringAlertCriteria.Empty, null)")]
public int GetMonitoringAlertsCount ();
member this.GetMonitoringAlertsCount : unit -> int
Public Function GetMonitoringAlertsCount () As Integer

Returns

The count.

Attributes

Applies to

GetMonitoringAlertsCount(MonitoringAlertCriteria)

Caution

Please use OperationalData.GetMonitoringAlertsCount()

Retrieves count of all the MonitoringAlert objects in the management group.

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria);
[System.Obsolete("Please use OperationalData.GetMonitoringAlertsCount()")]
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria -> int
Public Function GetMonitoringAlertsCount (criteria As MonitoringAlertCriteria) As Integer

Parameters

criteria
MonitoringAlertCriteria

The criteria to scope the method by.

Returns

The count.

Attributes

Applies to