MetricAlertsOperations.Update Method

Definition

Update an metric alert definition.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertResource> Update (string resourceGroupName, string ruleName, Azure.ResourceManager.Insights.Models.MetricAlertResourcePatch parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : string * string * Azure.ResourceManager.Insights.Models.MetricAlertResourcePatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertResource>
override this.Update : string * string * Azure.ResourceManager.Insights.Models.MetricAlertResourcePatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertResource>
Public Overridable Function Update (resourceGroupName As String, ruleName As String, parameters As MetricAlertResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MetricAlertResource)

Parameters

resourceGroupName
System.String

The name of the resource group.

ruleName
System.String

The name of the rule.

parameters
MetricAlertResourcePatch

The parameters of the rule to update.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<MetricAlertResource>

Applies to