Freigeben über


MetricAlertResource.Update(MetricAlertPatch, CancellationToken) Methode

Definition

Aktualisieren Sie eine Metrikwarnungsdefinition.

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