IConnectorFramework.GetMonitoringAlertsWithBookmarkWithBatchSizeForTiers Method (Guid, String, DateTime, Int32, ConnectorTieredOperationFailure[])
Applies To: Operations Manager for System Center 2012
Gets alerts marked for the monitoring connector for all configured management tiers. The returned array is limited to the batchSize parameter. The failures that occurred for the configured tiers are returned.
Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ObjectNotFoundException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[FaultContractAttribute(typeof(InvalidOperationException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[FaultContractAttribute(typeof(UnknownServiceException))]
[FaultContractAttribute(typeof(UnknownChannelException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[FaultContractAttribute(typeof(ConnectorInvalidException))]
[FaultContractAttribute(typeof(ArgumentNullException))]
ConnectorMonitoringAlert[] GetMonitoringAlertsWithBookmarkWithBatchSizeForTiers(
Guid connectorId,
string languageCodes,
DateTime utcBookmarkTime,
int batchSize,
out ConnectorTieredOperationFailure[] failures
)
[FaultContractAttribute((TimeoutException^::typeid))]
[FaultContractAttribute((ObjectNotFoundException^::typeid))]
[FaultContractAttribute((UnknownAuthorizationStoreException^::typeid))]
[FaultContractAttribute((InvalidOperationException^::typeid))]
[OperationContractAttribute]
[FaultContractAttribute((ServerDisconnectedException^::typeid))]
[FaultContractAttribute((ServiceNotRunningException^::typeid))]
[FaultContractAttribute((UnknownServiceException^::typeid))]
[FaultContractAttribute((UnknownChannelException^::typeid))]
[FaultContractAttribute((UnauthorizedAccessEnterpriseManagementException^::typeid))]
[FaultContractAttribute((UnknownDatabaseException^::typeid))]
[FaultContractAttribute((InvalidDatabaseDataException^::typeid))]
[FaultContractAttribute((ConnectorInvalidException^::typeid))]
[FaultContractAttribute((ArgumentNullException^::typeid))]
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsWithBookmarkWithBatchSizeForTiers(
Guid connectorId,
String^ languageCodes,
DateTime utcBookmarkTime,
int batchSize,
[OutAttribute] array<ConnectorTieredOperationFailure^>^% failures
)
[<FaultContractAttribute(typeof(TimeoutException))>]
[<FaultContractAttribute(typeof(ObjectNotFoundException))>]
[<FaultContractAttribute(typeof(UnknownAuthorizationStoreException))>]
[<FaultContractAttribute(typeof(InvalidOperationException))>]
[<OperationContractAttribute>]
[<FaultContractAttribute(typeof(ServerDisconnectedException))>]
[<FaultContractAttribute(typeof(ServiceNotRunningException))>]
[<FaultContractAttribute(typeof(UnknownServiceException))>]
[<FaultContractAttribute(typeof(UnknownChannelException))>]
[<FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))>]
[<FaultContractAttribute(typeof(UnknownDatabaseException))>]
[<FaultContractAttribute(typeof(InvalidDatabaseDataException))>]
[<FaultContractAttribute(typeof(ConnectorInvalidException))>]
[<FaultContractAttribute(typeof(ArgumentNullException))>]
abstract GetMonitoringAlertsWithBookmarkWithBatchSizeForTiers :
connectorId:Guid *
languageCodes:string *
utcBookmarkTime:DateTime *
batchSize:int *
failures:ConnectorTieredOperationFailure[] byref -> ConnectorMonitoringAlert[]
<FaultContractAttribute(GetType(TimeoutException))>
<FaultContractAttribute(GetType(ObjectNotFoundException))>
<FaultContractAttribute(GetType(UnknownAuthorizationStoreException))>
<FaultContractAttribute(GetType(InvalidOperationException))>
<OperationContractAttribute>
<FaultContractAttribute(GetType(ServerDisconnectedException))>
<FaultContractAttribute(GetType(ServiceNotRunningException))>
<FaultContractAttribute(GetType(UnknownServiceException))>
<FaultContractAttribute(GetType(UnknownChannelException))>
<FaultContractAttribute(GetType(UnauthorizedAccessEnterpriseManagementException))>
<FaultContractAttribute(GetType(UnknownDatabaseException))>
<FaultContractAttribute(GetType(InvalidDatabaseDataException))>
<FaultContractAttribute(GetType(ConnectorInvalidException))>
<FaultContractAttribute(GetType(ArgumentNullException))>
Function GetMonitoringAlertsWithBookmarkWithBatchSizeForTiers (
connectorId As Guid,
languageCodes As String,
utcBookmarkTime As Date,
batchSize As Integer,
<OutAttribute> ByRef failures As ConnectorTieredOperationFailure()
) 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. All alerts with a timestamp prior to this will be returned.
batchSize
Type: System.Int32The approximate max batch size to return.
failures
Type: Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorTieredOperationFailure[]The array of failures that may have occurred for various tiers.
Return Value
Type: Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorMonitoringAlert[]
Returns an array of ConnectorMonitoringAlert objects that contain the alerts for the specified monitoring connector that occurred before the specified utcBookmarkTime.
Remarks
This method will only retrieve up to the number of alerts that are specified by the batchSize parameter. This limitation allows you to perform the get monitoring alerts operation in small batches, thereby avoiding a time-out failure. The batchSize is the total across all tiers, not per tier.
It is good practice to limit the number of alerts obtained by a single call. When you perform this GetMonitoringAlertsWithBookmarkWithBatchSizeForTiers method you should check to see if the count property of the returned collection equals or exceeds the batchSize. If the count property of the returned collection equals or exceeds the batchSize then you should acknowledge the alerts received, and call this function again to get the next batch of alerts. Only when the returned collection is smaller than the batchSize can you be sure that you have received all of the alerts.
This method gets alerts only from the bookmark date to the current time less 30 seconds.
After you get the monitoring alert, you need to acknowledge that alert with an AcknowledgeMonitoringAlertsForTiers. Failure to acknowledge an alert will result in subsequent calls to get new alerts returning the already received alerts.
See Also
IConnectorFramework Interface
Microsoft.EnterpriseManagement.ConnectorFramework Namespace
Return to top