PartialMonitoringObjectBase.GetMonitoringAlertsCount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of monitoring alerts that are related to this monitoring object.
Overloads
GetMonitoringAlertsCount(MonitoringAlertCriteria, ManagementPackClass, TraversalDepth) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(MonitoringAlertCriteria, ManagementPackClass) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(ManagementPackClass, TraversalDepth) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(MonitoringAlertCriteria, TraversalDepth) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(ManagementPackClass) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(TraversalDepth) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount() |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(MonitoringAlertCriteria) |
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject. |
GetMonitoringAlertsCount(MonitoringAlertCriteria, ManagementPackClass, TraversalDepth)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
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);
member this.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 class to narrow the results to.
- traversalDepth
- TraversalDepth
Whether to include instances contained by the instances of the class.
Returns
The count of alerts.
Applies to
GetMonitoringAlertsCount(MonitoringAlertCriteria, ManagementPackClass)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Configuration.ManagementPackClass -> int
Public Function GetMonitoringAlertsCount (criteria As MonitoringAlertCriteria, managementPackClass As ManagementPackClass) As Integer
Parameters
- criteria
- MonitoringAlertCriteria
The criteria to scope the method by.
- managementPackClass
- ManagementPackClass
The class to narrow the results to.
Returns
The count of alerts.
Applies to
GetMonitoringAlertsCount(ManagementPackClass, TraversalDepth)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (managementPackClass As ManagementPackClass, traversalDepth As TraversalDepth) As Integer
Parameters
- managementPackClass
- ManagementPackClass
The class to narrow the results to.
- traversalDepth
- TraversalDepth
Whether to include instances contained by the instances of the class.
Returns
The count of alerts.
Applies to
GetMonitoringAlertsCount(MonitoringAlertCriteria, TraversalDepth)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria, Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria criteria, Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Monitoring.MonitoringAlertCriteria * Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (criteria As MonitoringAlertCriteria, traversalDepth As TraversalDepth) As Integer
Parameters
- criteria
- MonitoringAlertCriteria
The criteria to scope the method by.
- traversalDepth
- TraversalDepth
Whether to return alerts from entities contained by this entity as well.
Returns
The count of alerts.
Applies to
GetMonitoringAlertsCount(ManagementPackClass)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Configuration::ManagementPackClass ^ managementPackClass);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Configuration.ManagementPackClass managementPackClass);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Configuration.ManagementPackClass -> int
Public Function GetMonitoringAlertsCount (managementPackClass As ManagementPackClass) As Integer
Parameters
- managementPackClass
- ManagementPackClass
The class to narrow the results to.
Returns
The count of alerts.
Applies to
GetMonitoringAlertsCount(TraversalDepth)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Common::TraversalDepth traversalDepth);
public int GetMonitoringAlertsCount (Microsoft.EnterpriseManagement.Common.TraversalDepth traversalDepth);
member this.GetMonitoringAlertsCount : Microsoft.EnterpriseManagement.Common.TraversalDepth -> int
Public Function GetMonitoringAlertsCount (traversalDepth As TraversalDepth) As Integer
Parameters
- traversalDepth
- TraversalDepth
Whether to return alerts from entities contained by this entity as well.
Returns
The count.
Applies to
GetMonitoringAlertsCount()
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount();
public int GetMonitoringAlertsCount ();
member this.GetMonitoringAlertsCount : unit -> int
Public Function GetMonitoringAlertsCount () As Integer
Returns
The count.
Applies to
GetMonitoringAlertsCount(MonitoringAlertCriteria)
Retrieves count of all the MonitoringAlert objects related to this PartialMonitoringObject.
public:
int GetMonitoringAlertsCount(Microsoft::EnterpriseManagement::Monitoring::MonitoringAlertCriteria ^ criteria);
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.