IConnectorFramework.GetMonitoringAlertsWithBookmark Method (Guid, String, DateTime)
Applies To: Operations Manager for System Center 2012
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)
Syntax
[FaultContractAttribute(typeof(ConnectorInvalidException))]
[FaultContractAttribute(typeof(UnknownChannelException))]
[FaultContractAttribute(typeof(ObjectNotFoundException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[FaultContractAttribute(typeof(UnknownServiceException))]
ConnectorMonitoringAlert[] GetMonitoringAlertsWithBookmark(
Guid connectorId,
string languageCodes,
DateTime utcBookmarkTime
)
[FaultContractAttribute((ConnectorInvalidException^::typeid))]
[FaultContractAttribute((UnknownChannelException^::typeid))]
[FaultContractAttribute((ObjectNotFoundException^::typeid))]
[FaultContractAttribute((UnknownAuthorizationStoreException^::typeid))]
[FaultContractAttribute((UnknownDatabaseException^::typeid))]
[FaultContractAttribute((InvalidDatabaseDataException^::typeid))]
[OperationContractAttribute]
[FaultContractAttribute((ArgumentNullException^::typeid))]
[FaultContractAttribute((UnauthorizedAccessEnterpriseManagementException^::typeid))]
[FaultContractAttribute((TimeoutException^::typeid))]
[FaultContractAttribute((ServerDisconnectedException^::typeid))]
[FaultContractAttribute((ServiceNotRunningException^::typeid))]
[FaultContractAttribute((UnknownServiceException^::typeid))]
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsWithBookmark(
Guid connectorId,
String^ languageCodes,
DateTime utcBookmarkTime
)
[<FaultContractAttribute(typeof(ConnectorInvalidException))>]
[<FaultContractAttribute(typeof(UnknownChannelException))>]
[<FaultContractAttribute(typeof(ObjectNotFoundException))>]
[<FaultContractAttribute(typeof(UnknownAuthorizationStoreException))>]
[<FaultContractAttribute(typeof(UnknownDatabaseException))>]
[<FaultContractAttribute(typeof(InvalidDatabaseDataException))>]
[<OperationContractAttribute>]
[<FaultContractAttribute(typeof(ArgumentNullException))>]
[<FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))>]
[<FaultContractAttribute(typeof(TimeoutException))>]
[<FaultContractAttribute(typeof(ServerDisconnectedException))>]
[<FaultContractAttribute(typeof(ServiceNotRunningException))>]
[<FaultContractAttribute(typeof(UnknownServiceException))>]
abstract GetMonitoringAlertsWithBookmark :
connectorId:Guid *
languageCodes:string *
utcBookmarkTime:DateTime -> ConnectorMonitoringAlert[]
<FaultContractAttribute(GetType(ConnectorInvalidException))>
<FaultContractAttribute(GetType(UnknownChannelException))>
<FaultContractAttribute(GetType(ObjectNotFoundException))>
<FaultContractAttribute(GetType(UnknownAuthorizationStoreException))>
<FaultContractAttribute(GetType(UnknownDatabaseException))>
<FaultContractAttribute(GetType(InvalidDatabaseDataException))>
<OperationContractAttribute>
<FaultContractAttribute(GetType(ArgumentNullException))>
<FaultContractAttribute(GetType(UnauthorizedAccessEnterpriseManagementException))>
<FaultContractAttribute(GetType(TimeoutException))>
<FaultContractAttribute(GetType(ServerDisconnectedException))>
<FaultContractAttribute(GetType(ServiceNotRunningException))>
<FaultContractAttribute(GetType(UnknownServiceException))>
Function GetMonitoringAlertsWithBookmark (
connectorId As Guid,
languageCodes As String,
utcBookmarkTime As Date
) As ConnectorMonitoringAlert()
Parameters
connectorId
Type: System.GuidThe globally unique identifier (GUID) for the monitoring connector to get alerts for.
languageCodes
Type: System.StringA 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
Type: System.DateTimeA timestamp bookmark.
Return Value
Type: Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorMonitoringAlert[]
Returns 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.
See Also
IConnectorFramework Interface
Microsoft.EnterpriseManagement.ConnectorFramework Namespace
Return to top