Compartilhar via


MetricAlertResource.Update(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 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)

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