你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricsAdvisorAdministrationClient.UpdateAlertConfiguration Method

Definition

Updates an existing AnomalyAlertConfiguration. In order to update your configuration, you cannot create an AnomalyAlertConfiguration directly from its constructor. You need to obtain an instance via GetAlertConfiguration(String, CancellationToken) or another CRUD operation and update it before calling this method.

public virtual Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration> UpdateAlertConfiguration(Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAlertConfiguration : Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>
override this.UpdateAlertConfiguration : Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>
Public Overridable Function UpdateAlertConfiguration (alertConfiguration As AnomalyAlertConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AnomalyAlertConfiguration)

Parameters

alertConfiguration
AnomalyAlertConfiguration

The AnomalyAlertConfiguration containing the updates.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> containing the result of the operation. The result is an AnomalyAlertConfiguration instance containing information about the updated configuration.

Exceptions

alertConfiguration or alertConfiguration.Id is null.

Applies to