Freigeben über


MetricAlertResource.UpdateAsync(MetricAlertPatch, CancellationToken) Methode

Definition

Aktualisieren Sie eine Metrikwarnungsdefinition.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
  • Vorgang IdMetricAlerts_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.MetricAlertResource>> UpdateAsync (Azure.ResourceManager.Monitor.Models.MetricAlertPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Monitor.Models.MetricAlertPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.MetricAlertResource>>
override this.UpdateAsync : Azure.ResourceManager.Monitor.Models.MetricAlertPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.MetricAlertResource>>
Public Overridable Function UpdateAsync (patch As MetricAlertPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MetricAlertResource))

Parameter

patch
MetricAlertPatch

Die Parameter der zu aktualisierenden Regel.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

patch ist NULL.

Gilt für: