Gets alerts marked for the monitoring connector. You also specify a timestamp bookmark, and all alerts with a timestamp after the bookmark will be returned. Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ConnectorFrameworkProxy
Dim connectorId As Guid
Dim utcBookmarkTime As DateTime
Dim returnValue As ConnectorMonitoringAlert()

returnValue = instance.GetMonitoringAlertsWithBookmark(connectorId, utcBookmarkTime)

Syntax

Visual Basic
Public Function GetMonitoringAlertsWithBookmark ( _
		connectorId As Guid, _
		utcBookmarkTime As DateTime _
) As ConnectorMonitoringAlert()
C#
public ConnectorMonitoringAlert[] GetMonitoringAlertsWithBookmark (
		Guid connectorId,
		DateTime utcBookmarkTime
)
C++
public:
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsWithBookmark (
		Guid connectorId, 
		DateTime utcBookmarkTime
)
J#
public ConnectorMonitoringAlert[] GetMonitoringAlertsWithBookmark (
		Guid connectorId, 
		DateTime utcBookmarkTime
)
JScript
public function GetMonitoringAlertsWithBookmark (
		connectorId : Guid, 
		utcBookmarkTime : DateTime
) : ConnectorMonitoringAlert[]

Parameters

connectorId

The globally unique identifier (GUID) for the monitoring connector to get alerts for.

utcBookmarkTime

A timestamp bookmark.

Return Value

An array of ConnectorMonitoringAlert objects that contain the alerts for the specified monitoring connector.

Remarks

To get a ConnectorMonitoringAlert array collection through a MonitoringConnector:

  • The monitoring connector must be set up.

  • The monitoring connector must be initialized.

  • Alerts must be present.

  • Alerts must be marked for the monitoring connector.

This method gets all alerts assigned to a specific monitoring connector after the specified bookmark date and time.

This method gets alerts only from the utcBookmarkTime to the current time less 30 seconds.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also