Compartilhar via


MetricAlertResource.UpdateAsync(MetricAlertPatch, CancellationToken) Método

Definição

Atualizar uma definição de alerta de métrica.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}
  • IdMetricAlerts_Update de operação
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))

Parâmetros

patch
MetricAlertPatch

Os parâmetros da regra a ser atualizada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

patch é nulo.

Aplica-se a