Updates the alerts, including the alert history, to the System Center Operation Manager. The comments are part of the alert history. Namespace: Microsoft.EnterpriseManagement.ConnectorFramework
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ConnectorFrameworkProxy
Dim connectorId As Guid
Dim comments As String
Dim alertsToUpdate As ConnectorMonitoringAlert()
Dim returnValue As ConnectorMonitoringAlertUpdateFailure()

returnValue = instance.UpdateMonitoringAlerts(connectorId, comments, alertsToUpdate)

Syntax

Visual Basic
Public Function UpdateMonitoringAlerts ( _
		connectorId As Guid, _
		comments As String, _
		alertsToUpdate As ConnectorMonitoringAlert() _
) As ConnectorMonitoringAlertUpdateFailure()
C#
public ConnectorMonitoringAlertUpdateFailure[] UpdateMonitoringAlerts (
		Guid connectorId,
		string comments,
		ConnectorMonitoringAlert[] alertsToUpdate
)
C++
public:
array<ConnectorMonitoringAlertUpdateFailure^>^ UpdateMonitoringAlerts (
		Guid connectorId, 
		String^ comments, 
		array<ConnectorMonitoringAlert^>^ alertsToUpdate
)
J#
public ConnectorMonitoringAlertUpdateFailure[] UpdateMonitoringAlerts (
		Guid connectorId, 
		String comments, 
		ConnectorMonitoringAlert[] alertsToUpdate
)
JScript
public function UpdateMonitoringAlerts (
		connectorId : Guid, 
		comments : String, 
		alertsToUpdate : ConnectorMonitoringAlert[]
) : ConnectorMonitoringAlertUpdateFailure[]

Parameters

connectorId

The globally unique identifier (GUID) for the monitoring connector to update alerts for.

comments

Comments to apply to the update.

alertsToUpdate

An array of ConnectorMonitoringAlert objects to update.

Return Value

An array of ConnectorMonitoringAlertUpdateFailure objects that contain possible errors that occurred during the update.

Remarks

To improve performance when updating large numbers of alerts, send no more than 1000 updated alerts in each call to the UpdateMonitoringAlerts method.


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 Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also