MetricAlertsOperations.Update(String, String, MetricAlertResourcePatch, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.