MonitoringConnector.GetMonitoringAlerts Method ()

 

Applies To: Operations Manager for System Center 2012

Gets alerts marked for the monitoring connector.

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

Syntax

public ReadOnlyCollection<ConnectorMonitoringAlert> GetMonitoringAlerts()
public:
ReadOnlyCollection<ConnectorMonitoringAlert^>^ GetMonitoringAlerts()
member GetMonitoringAlerts : unit -> ReadOnlyCollection<ConnectorMonitoringAlert>
Public Function GetMonitoringAlerts As ReadOnlyCollection(Of ConnectorMonitoringAlert)

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ConnectorMonitoringAlert>

Returns a ReadOnlyCollection<T> of ConnectorMonitoringAlert objects.

Remarks

This method only gets alerts that are marked for the monitoring connector from the bookmark time to the current time less 30 seconds.

Examples

The following example uses the GetMonitoringAlerts method to get the first alert that is marked for this connector and display that alert.

This example assumes that a monitoring connector exists and that alerts are marked for this connector.

See Also

AcknowledgeMonitoringAlerts
AcknowledgeMonitoringAlerts
AcknowledgeMonitoringAlerts
GetMonitoringAlerts Overload
MonitoringConnector Class
Microsoft.EnterpriseManagement.ConnectorFramework Namespace

Return to top