Gets the specified alerts that are marked for
the monitoring connector. Namespace:
Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As ConnectorFrameworkProxy Dim connectorId As Guid Dim alertIds As Guid() Dim returnValue As ConnectorMonitoringAlert() returnValue = instance.GetMonitoringAlertsByIds(connectorId, alertIds)Public Function GetMonitoringAlertsByIds ( _ connectorId As Guid, _ alertIds As Guid() _ ) As ConnectorMonitoringAlert()public ConnectorMonitoringAlert[] GetMonitoringAlertsByIds ( Guid connectorId, Guid[] alertIds )public: array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsByIds ( Guid connectorId, array<Guid>^ alertIds )public ConnectorMonitoringAlert[] GetMonitoringAlertsByIds ( Guid connectorId, Guid[] alertIds )public function GetMonitoringAlertsByIds ( connectorId : Guid, alertIds : Guid[] ) : ConnectorMonitoringAlert[]ParametersconnectorIdThe globally unique identifier (GUID) for the monitoring connector to get alerts for.alertIdsThe identifiers of the alerts to get.Return ValueReturns an Array ConnectorMonitoringAlert of objects that contain the alerts for the specified monitoring connector.
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As ConnectorFrameworkProxy Dim connectorId As Guid Dim alertIds As Guid() Dim returnValue As ConnectorMonitoringAlert() returnValue = instance.GetMonitoringAlertsByIds(connectorId, alertIds)Public Function GetMonitoringAlertsByIds ( _ connectorId As Guid, _ alertIds As Guid() _ ) As ConnectorMonitoringAlert()public ConnectorMonitoringAlert[] GetMonitoringAlertsByIds ( Guid connectorId, Guid[] alertIds )public: array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsByIds ( Guid connectorId, array<Guid>^ alertIds )public ConnectorMonitoringAlert[] GetMonitoringAlertsByIds ( Guid connectorId, Guid[] alertIds )public function GetMonitoringAlertsByIds ( connectorId : Guid, alertIds : Guid[] ) : ConnectorMonitoringAlert[]ParametersconnectorIdThe globally unique identifier (GUID) for the monitoring connector to get alerts for.alertIdsThe identifiers of the alerts to get.Return ValueReturns an Array ConnectorMonitoringAlert of objects that contain the alerts for the specified monitoring connector.
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.
You can specify which alerts to get by specifying an array of alert identifiers.
This method gets alerts only from the bookmark date to the current time less 30 seconds.
Any public static
(Shared in Visual Basic) members of this type are thread safe. Any
instance members are not guaranteed to be thread safe.