Share via


MonitoringAlert.Update Method

Definition

Updates the alert and adds a comment about the update.

Overloads

Update(String)

Updates this alert and adds a comment. If no changes are made prior to this call, it will simply insert a new comment for the MonitoringAlert.

Update(String, MonitoringConnector)

Updates this alert on behalf of the given connector and adds a comment. If no changes are made prior to this call, it will simply insert a new comment for the MonitoringAlert.

Update(String)

Updates this alert and adds a comment. If no changes are made prior to this call, it will simply insert a new comment for the MonitoringAlert.

public:
 void Update(System::String ^ comments);
public void Update (string comments);
member this.Update : string -> unit
Public Sub Update (comments As String)

Parameters

comments
String

The optional comments to append to the alert history entry to this update.

Exceptions

Update failed. See inner exception for details.

Remarks

This method makes permanent any changes made to the properties of the alert. The comments are appended to the history to this alert.

Performing an Update modifies the LastModified property of the alert to the current time, LastModifiedBy property to the name of the user who performed the update, and modifies the LastModifiedByNonConnector to the current time.

Applies to

Update(String, MonitoringConnector)

Updates this alert on behalf of the given connector and adds a comment. If no changes are made prior to this call, it will simply insert a new comment for the MonitoringAlert.

public:
 void Update(System::String ^ comments, Microsoft::EnterpriseManagement::ConnectorFramework::MonitoringConnector ^ connector);
public void Update (string comments, Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector connector);
member this.Update : string * Microsoft.EnterpriseManagement.ConnectorFramework.MonitoringConnector -> unit
Public Sub Update (comments As String, connector As MonitoringConnector)

Parameters

comments
String

The optional comments to append to the alert history entry to this update.

connector
MonitoringConnector

The connector on whose behalf to update the alert.

Exceptions

Update failed. See inner exception for details.

Remarks

This method makes permanent any changes made to the properties of the alert. The comments are appended to the history to this alert.

Performing an Update modifies the LastModified property of the alert to the current time, LastModifiedBy property to the name of the user who performed the update, and modifies the LastModifiedByNonConnector to the current time.

Applies to