IConnectorFramework.GetMonitoringAlertsForTiers 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 from the current Management Group as well as from any additional tiers that are configured for this connector. The failures that occurred for the configured tiers are returned along with the alerts.
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 failures As ConnectorTieredOperationFailure()
Dim returnValue As ConnectorMonitoringAlert()
returnValue = instance.GetMonitoringAlertsForTiers(connectorId, languageCodes, failures)
Syntax
'Declaration
<FaultContractAttribute(GetType(UnknownServiceException))> _
<FaultContractAttribute(GetType(UnauthorizedAccessEnterpriseManagementException))> _
<FaultContractAttribute(GetType(ObjectNotFoundException))> _
<FaultContractAttribute(GetType(UnknownAuthorizationStoreException))> _
<FaultContractAttribute(GetType(UnknownDatabaseException))> _
<FaultContractAttribute(GetType(InvalidDatabaseDataException))> _
<FaultContractAttribute(GetType(ConnectorInvalidException))> _
<FaultContractAttribute(GetType(ArgumentNullException))> _
<FaultContractAttribute(GetType(TimeoutException))> _
<FaultContractAttribute(GetType(ServerDisconnectedException))> _
<FaultContractAttribute(GetType(ServiceNotRunningException))> _
<OperationContractAttribute> _
<FaultContractAttribute(GetType(UnknownChannelException))> _
Function GetMonitoringAlertsForTiers ( _
connectorId As Guid, _
languageCodes As String, _
<OutAttribute> ByRef failures As ConnectorTieredOperationFailure() _
) As ConnectorMonitoringAlert()
[FaultContractAttribute(typeof(UnknownServiceException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(ObjectNotFoundException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[FaultContractAttribute(typeof(ConnectorInvalidException))]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(UnknownChannelException))]
ConnectorMonitoringAlert[] GetMonitoringAlertsForTiers (
Guid connectorId,
string languageCodes,
out ConnectorTieredOperationFailure[] failures
)
[FaultContractAttribute(typeof(UnknownServiceException))]
[FaultContractAttribute(typeof(UnauthorizedAccessEnterpriseManagementException))]
[FaultContractAttribute(typeof(ObjectNotFoundException))]
[FaultContractAttribute(typeof(UnknownAuthorizationStoreException))]
[FaultContractAttribute(typeof(UnknownDatabaseException))]
[FaultContractAttribute(typeof(InvalidDatabaseDataException))]
[FaultContractAttribute(typeof(ConnectorInvalidException))]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(TimeoutException))]
[FaultContractAttribute(typeof(ServerDisconnectedException))]
[FaultContractAttribute(typeof(ServiceNotRunningException))]
[OperationContractAttribute]
[FaultContractAttribute(typeof(UnknownChannelException))]
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsForTiers (
Guid connectorId,
String^ languageCodes,
[OutAttribute] array<ConnectorTieredOperationFailure^>^% failures
)
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownServiceException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnauthorizedAccessEnterpriseManagementException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ObjectNotFoundException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownAuthorizationStoreException) */
/** @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.TimeoutException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServerDisconnectedException) */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.ServiceNotRunningException) */
/** @attribute OperationContractAttribute() */
/** @attribute FaultContractAttribute(Microsoft.EnterpriseManagement.Common.UnknownChannelException) */
ConnectorMonitoringAlert[] GetMonitoringAlertsForTiers (
Guid connectorId,
String languageCodes,
/** @attribute OutAttribute() */ /** @ref */ ConnectorTieredOperationFailure[] failures
)
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.
- failures
The array of failures that may have occurred for various tiered monitoring groups.
Return Value
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 for each configured management tier.
This method gets alerts only from the bookmark date 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 Vista, Windows Server 2003, and
Target Platforms
See Also
Reference
IConnectorFramework Interface
IConnectorFramework Members
Microsoft.EnterpriseManagement.ConnectorFramework Namespace