ConnectorFrameworkProxy.GetMonitoringAlerts(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets alerts for the given connector.
public:
cli::array <Microsoft::EnterpriseManagement::ConnectorFramework::ConnectorMonitoringAlert ^> ^ GetMonitoringAlerts(Guid connectorId);
public Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorMonitoringAlert[] GetMonitoringAlerts (Guid connectorId);
member this.GetMonitoringAlerts : Guid -> Microsoft.EnterpriseManagement.ConnectorFramework.ConnectorMonitoringAlert[]
Public Function GetMonitoringAlerts (connectorId As Guid) As ConnectorMonitoringAlert()
Parameters
- connectorId
- Guid
The connector id.
Returns
The alerts that have changed since the current bookmark of the connector.
Examples
See GetMonitoringAlertHistoryByAlertIds for an example of the GetMonitoringAlerts method.
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.
This method gets alerts only from the current bookmark date to the current time less 30 seconds.