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 IConnectorFramework
Dim connectorId As Guid
Dim languageCodes As String
Dim utcBookmarkTime As DateTime
Dim returnValue As ConnectorMonitoringAlert()

returnValue = instance.GetMonitoringAlertsWithBookmark(connectorId, languageCodes, utcBookmarkTime)

Syntax

Visual Basic
<FaultContractAttribute(GetType(UnknownAuthorizationStoreException))> _
<FaultContractAttribute(GetType(ServerDisconnectedException))> _
<FaultContractAttribute(GetType(UnknownServiceException))> _
<FaultContractAttribute(GetType(UnknownChannelException))> _
<FaultContractAttribute(GetType(UnauthorizedAccessMonitoringException))> _
<FaultContractAttribute(GetType(ObjectNotFoundException))> _
<OperationContractAttribute> _
<FaultContractAttribute(GetType(UnknownDatabaseException))> _
<FaultContractAttribute(GetType(InvalidDatabaseDataException))> _
<FaultContractAttribute(GetType(ConnectorInvalidException))> _
<FaultContractAttribute(GetType(ArgumentNullException))> _
<FaultContractAttribute(GetType(ServiceNotRunningException))> _
<FaultContractAttribute(GetType(TimeoutException))> _
Function GetMonitoringAlertsWithBookmark ( _
		connectorId As Guid, _
		languageCodes As String, _
		utcBookmarkTime As DateTime _
) As ConnectorMonitoringAlert()
C#
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))] 
[FaultContractAttribute(typeof(ServerDisconnectedException))] 
[FaultContractAttribute(typeof(UnknownServiceException))] 
[FaultContractAttribute(typeof(UnknownChannelException))] 
[FaultContractAttribute(typeof(UnauthorizedAccessMonitoringException))] 
[FaultContractAttribute(typeof(ObjectNotFoundException))] 
[OperationContractAttribute] 
[FaultContractAttribute(typeof(UnknownDatabaseException))] 
[FaultContractAttribute(typeof(InvalidDatabaseDataException))] 
[FaultContractAttribute(typeof(ConnectorInvalidException))] 
[FaultContractAttribute(typeof(ArgumentNullException))] 
[FaultContractAttribute(typeof(ServiceNotRunningException))] 
[FaultContractAttribute(typeof(TimeoutException))] 
ConnectorMonitoringAlert[] GetMonitoringAlertsWithBookmark (
		Guid connectorId,
		string languageCodes,
		DateTime utcBookmarkTime
)
C++
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))] 
[FaultContractAttribute(typeof(ServerDisconnectedException))] 
[FaultContractAttribute(typeof(UnknownServiceException))] 
[FaultContractAttribute(typeof(UnknownChannelException))] 
[FaultContractAttribute(typeof(UnauthorizedAccessMonitoringException))] 
[FaultContractAttribute(typeof(ObjectNotFoundException))] 
[OperationContractAttribute] 
[FaultContractAttribute(typeof(UnknownDatabaseException))] 
[FaultContractAttribute(typeof(InvalidDatabaseDataException))] 
[FaultContractAttribute(typeof(ConnectorInvalidException))] 
[FaultContractAttribute(typeof(ArgumentNullException))] 
[FaultContractAttribute(typeof(ServiceNotRunningException))] 
[FaultContractAttribute(typeof(TimeoutException))] 
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsWithBookmark (
		Guid connectorId, 
		String^ languageCodes, 
		DateTime utcBookmarkTime
)
J#
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessMonitoringException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ObjectNotFoundException) */ 
/** @attribute OperationContractAttribute() */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownDatabaseException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ConnectorInvalidException) */ 
/** @attribute FaultContractAttribute(System.ArgumentNullException) */ 
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException) */ 
/** @attribute FaultContractAttribute(System.TimeoutException) */ 
ConnectorMonitoringAlert[] GetMonitoringAlertsWithBookmark (
		Guid connectorId, 
		String languageCodes, 
		DateTime utcBookmarkTime
)
JScript
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessMonitoringException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ObjectNotFoundException) 
OperationContractAttribute 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownDatabaseException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ConnectorInvalidException) 
FaultContractAttribute(System.ArgumentNullException) 
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException) 
FaultContractAttribute(System.TimeoutException) 
function GetMonitoringAlertsWithBookmark (
		connectorId : Guid, 
		languageCodes : String, 
		utcBookmarkTime : DateTime
) : ConnectorMonitoringAlert[]

Parameters

connectorId

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

languageCodes

A comma-delimited list of language codes. The language code is an ISO 639-2 three-letter code that corresponds to the values used by the CultureInfo.ThreeLetterISOLanguageName property.

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