AlertRulesOperations.UpdateAsync Method

Definition

Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.AlertRuleResource>> UpdateAsync (string resourceGroupName, string ruleName, Azure.ResourceManager.Insights.Models.AlertRuleResourcePatch alertRulesResource, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : string * string * Azure.ResourceManager.Insights.Models.AlertRuleResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.AlertRuleResource>>
override this.UpdateAsync : string * string * Azure.ResourceManager.Insights.Models.AlertRuleResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.AlertRuleResource>>
Public Overridable Function UpdateAsync (resourceGroupName As String, ruleName As String, alertRulesResource As AlertRuleResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AlertRuleResource))

Parameters

resourceGroupName
System.String

The name of the resource group.

ruleName
System.String

The name of the rule.

alertRulesResource
AlertRuleResourcePatch

Parameters supplied to the operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<AlertRuleResource>>

Applies to