ConnectorFrameworkProxy.GetMonitoringAlertsByIds Method (Guid, Guid[])
Applies To: Operations Manager for System Center 2012
Gets the specified alerts that are marked for the monitoring connector.
Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public ConnectorMonitoringAlert[] GetMonitoringAlertsByIds(
Guid connectorId,
Guid[] alertIds
)
public:
array<ConnectorMonitoringAlert^>^ GetMonitoringAlertsByIds(
Guid connectorId,
array<Guid>^ alertIds
)
member GetMonitoringAlertsByIds :
connectorId:Guid *
alertIds:Guid[] -> ConnectorMonitoringAlert[]
Public Function GetMonitoringAlertsByIds (
connectorId As Guid,
alertIds As Guid()
) As ConnectorMonitoringAlert()
Parameters
connectorId
Type: System.GuidThe globally unique identifier (GUID) for the monitoring connector to get alerts for.
alertIds
Type: System.Guid[]The identifiers of the alerts to get.
Return Value
Type: Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorMonitoringAlert[]
Returns an Array ConnectorMonitoringAlert of 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.
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.
See Also
ConnectorFrameworkProxy Class
Microsoft.EnterpriseManagement.ConnectorFramework Namespace
Return to top