次の方法で共有


MetricsAdvisorClient.GetAlertsAsync メソッド

定義

指定 AnomalyAlertConfigurationした によってトリガーされるアラートを記述する項目のコレクションを取得します。

public virtual Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert> GetAlertsAsync (string alertConfigurationId, Azure.AI.MetricsAdvisor.GetAlertsOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertsAsync : string * Azure.AI.MetricsAdvisor.GetAlertsOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert>
override this.GetAlertsAsync : string * Azure.AI.MetricsAdvisor.GetAlertsOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert>
Public Overridable Function GetAlertsAsync (alertConfigurationId As String, options As GetAlertsOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AnomalyAlert)

パラメーター

alertConfigurationId
String

AnomalyAlertConfiguration の一意の識別子。

options
GetAlertsOptions

要求の動作を構成するために使用されるオプションのセット。

cancellationToken
CancellationToken

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

戻り値

AsyncPageable<T>のコレクションAnomalyAlertを格納している 。

例外

alertConfigurationId または options が null です。

alertConfigurationId が空であるか、有効な GUID ではありません。

適用対象