Share via


IOperationalDataManagement.GetMonitoringAlertsCount Method

Definition

Retrieves the number of MonitoringAlert objects.

Overloads

GetMonitoringAlertsCount(Guid, MonitoringAlertCriteria, ManagementPackClass, TraversalDepth)

Gets alert count for an instance.

GetMonitoringAlertsCount(Guid, MonitoringAlertCriteria, TraversalDepth)

Gets alert count for an instance.

GetMonitoringAlertsCount(MonitoringAlertCriteria, ManagementPackClass, TraversalDepth)

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

GetMonitoringAlertsCount(MonitoringAlertCriteria)

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

GetMonitoringAlertsCount(Guid, MonitoringAlertCriteria, ManagementPackClass, TraversalDepth)

Gets alert count for an instance.

public:
 int GetMonitoringAlertsCount(Guid instanceId, Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public int GetMonitoringAlertsCount (Guid instanceId, Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
abstract member GetMonitoringAlertsCount : Guid * Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (instanceId As Guid, criteria As MonitoringAlertCriteria, managementPackClass As ManagementPackClass, traversalDepth As TraversalDepth) As Integer

Parameters

instanceId
Guid
managementPackClass
ManagementPackClass
traversalDepth
TraversalDepth

Returns

The alert count for the instance.

Applies to

GetMonitoringAlertsCount(Guid, MonitoringAlertCriteria, TraversalDepth)

Gets alert count for an instance.

public:
 int GetMonitoringAlertsCount(Guid instanceId, Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public int GetMonitoringAlertsCount (Guid instanceId, Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
abstract member GetMonitoringAlertsCount : Guid * Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (instanceId As Guid, criteria As MonitoringAlertCriteria, traversalDepth As TraversalDepth) As Integer

Parameters

instanceId
Guid
traversalDepth
TraversalDepth

Returns

The alert count for the instance.

Applies to

GetMonitoringAlertsCount(MonitoringAlertCriteria, ManagementPackClass, TraversalDepth)

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

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
abstract member GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (criteria As MonitoringAlertCriteria, managementPackClass As ManagementPackClass, traversalDepth As TraversalDepth) As Integer

Parameters

criteria
MonitoringAlertCriteria

The criteria to scope the method by.

managementPackClass
ManagementPackClass

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.

Applies to

GetMonitoringAlertsCount(MonitoringAlertCriteria)

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

public:
 int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria);
abstract member 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.

Applies to