Bagikan melalui


ActivityLogAlertsOperationsExtensions.UpdateAsync Method

Definition

Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource> UpdateAsync (this Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations operations, string resourceGroupName, string activityLogAlertName, Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject activityLogAlertRulePatch, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource>
<Extension()>
Public Function UpdateAsync (operations As IActivityLogAlertsOperations, resourceGroupName As String, activityLogAlertName As String, activityLogAlertRulePatch As AlertRulePatchObject, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ActivityLogAlertResource)

Parameters

operations
IActivityLogAlertsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

activityLogAlertName
String

The name of the Activity Log Alert rule.

activityLogAlertRulePatch
AlertRulePatchObject

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to