次の方法で共有


MetricsAdvisorAdministrationClient.UpdateAlertConfigurationAsync メソッド

定義

既存AnomalyAlertConfigurationの を更新します。 構成を更新するために、コンストラクターから を AnomalyAlertConfiguration 直接作成することはできません。 または別の CRUD 操作を使用して GetAlertConfigurationAsync(String, CancellationToken) インスタンスを取得し、このメソッドを呼び出す前に更新する必要があります。

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))

パラメーター

alertConfiguration
AnomalyAlertConfiguration

AnomalyAlertConfiguration更新プログラムを含む 。

cancellationToken
CancellationToken

CancellationToken要求の有効期間を制御する 。

戻り値

操作の結果を含む Response<T> です。 結果は、更新された AnomalyAlertConfiguration 構成に関する情報を含むインスタンスです。

例外

alertConfiguration または alertConfiguration。ID が null です。

適用対象