Share via


MetricsAdvisorAdministrationClient.UpdateAlertConfigurationAsync 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 GetAlertConfigurationAsync(String, CancellationToken) or another CRUD operation and update it before calling this method.

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