IConnectorFramework.GetMonitoringAlertsWithBatchSize Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets alerts marked for the monitoring connector. The returned array is limited to the batchSize parameter.
Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Usage
'Usage
Dim instance As IConnectorFramework
Dim connectorId As Guid
Dim languageCodes As String
Dim batchSize As Integer
Dim returnValue As ConnectorMonitoringAlert()
returnValue = instance.GetMonitoringAlertsWithBatchSize(connectorId, languageCodes, batchSize)
Syntax
'Declaration
<FaultContractAttribute(GetType(ObjectNotFoundException))> _
<FaultContractAttribute(GetType(ServiceNotRunningException))> _
<FaultContractAttribute(GetType(UnknownChannelException))> _
<FaultContractAttribute(GetType(UnauthorizedAccessEnterpriseManagementException))> _
<FaultContractAttribute(GetType(UnknownDatabaseException))> _
<FaultContractAttribute(GetType(InvalidDatabaseDataException))> _
<FaultContractAttribute(GetType(ConnectorInvalidException))> _
<FaultContractAttribute(GetType(ArgumentNullException))> _
<FaultContractAttribute(GetType(InvalidOperationException))> _
<FaultContractAttribute(GetType(UnknownServiceException))> _
<FaultContractAttribute(GetType(UnknownAuthorizationStoreException))> _
<OperationContractAttribute> _
<FaultContractAttribute(GetType(TimeoutException))> _
<FaultContractAttribute(GetType(ServerDisconnectedException))> _
Function GetMonitoringAlertsWithBatchSize ( _
connectorId As Guid, _
languageCodes As String, _
batchSize As Integer _
) As ConnectorMonitoringAlert()
[FaultContractAttribute(typeof(ObjectNotFoundException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[FaultContractAttribute(typeof(UnknownChannelException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[FaultContractAttribute(typeof(ConnectorInvalidException))]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(InvalidOperationException))]
[FaultContractAttribute(typeof(UnknownServiceException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
ConnectorMonitoringAlert[] GetMonitoringAlertsWithBatchSize (
Guid connectorId,
string languageCodes,
int batchSize
)
[FaultContractAttribute(typeof(ObjectNotFoundException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[FaultContractAttribute(typeof(UnknownChannelException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[FaultContractAttribute(typeof(ConnectorInvalidException))]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(InvalidOperationException))]
[FaultContractAttribute(typeof(UnknownServiceException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsWithBatchSize (
Guid connectorId,
String^ languageCodes,
int batchSize
)
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ObjectNotFoundException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownDatabaseException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ConnectorInvalidException) */
/** @attribute FaultContractAttribute(System.ArgumentNullException) */
/** @attribute FaultContractAttribute(System.InvalidOperationException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException) */
/** @attribute OperationContractAttribute() */
/** @attribute FaultContractAttribute(System.TimeoutException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException) */
ConnectorMonitoringAlert[] GetMonitoringAlertsWithBatchSize (
Guid connectorId,
String languageCodes,
int batchSize
)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ObjectNotFoundException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownDatabaseException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.InvalidDatabaseDataException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ConnectorInvalidException)
FaultContractAttribute(System.ArgumentNullException)
FaultContractAttribute(System.InvalidOperationException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException)
OperationContractAttribute
FaultContractAttribute(System.TimeoutException)
FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException)
function GetMonitoringAlertsWithBatchSize (
connectorId : Guid,
languageCodes : String,
batchSize : int
) : 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.
- batchSize
The approximate max batch size to return.
Return Value
Returns an array of ConnectorMonitoringAlert objects that contain the alerts for the specified monitoring connector.
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.
It is good practice to limit the number of alerts obtained by a single call. When you perform this GetMonitoringAlertsWithBatchSize 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 AcknowledgeMonitoringAlerts. Failure to acknowledge an alert will result in subsequent calls to get new alerts returning the already received alerts.
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 Vista, Windows Server 2003, and
Target Platforms
See Also
Reference
IConnectorFramework Interface
IConnectorFramework Members
Microsoft.EnterpriseManagement.ConnectorFramework Namespace