IConnectorFramework.GetMonitoringAlertsForTiers Method (Guid, String, ConnectorTieredOperationFailure[])
Applies To: Operations Manager for System Center 2012
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)
Syntax
[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((UnknownServiceException^::typeid))]
[FaultContractAttribute((UnauthorizedAccessEnterpriseManagementException^::typeid))]
[FaultContractAttribute((ObjectNotFoundException^::typeid))]
[FaultContractAttribute((UnknownAuthorizationStoreException^::typeid))]
[FaultContractAttribute((UnknownDatabaseException^::typeid))]
[FaultContractAttribute((InvalidDatabaseDataException^::typeid))]
[FaultContractAttribute((ConnectorInvalidException^::typeid))]
[FaultContractAttribute((ArgumentNullException^::typeid))]
[FaultContractAttribute((TimeoutException^::typeid))]
[FaultContractAttribute((ServerDisconnectedException^::typeid))]
[FaultContractAttribute((ServiceNotRunningException^::typeid))]
[OperationContractAttribute]
[FaultContractAttribute((UnknownChannelException^::typeid))]
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsForTiers(
Guid connectorId,
String^ languageCodes,
[OutAttribute] array<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))>]
abstract GetMonitoringAlertsForTiers :
connectorId:Guid *
languageCodes:string *
failures:ConnectorTieredOperationFailure[] byref -> ConnectorMonitoringAlert[]
<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()
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.
failures
Type: Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorTieredOperationFailure[]The array of failures that may have occurred for various tiered monitoring groups.
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 for each configured management tier.
This method gets alerts only from the bookmark date to the current time less 30 seconds.
See Also
IConnectorFramework Interface
Microsoft.EnterpriseManagement.ConnectorFramework Namespace
Return to top