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

MetricsAdvisorClient.GetAnomaliesForDetectionConfigurationAsync 方法

定义

获取描述给定 AnomalyDetectionConfiguration检测到的异常的项的集合。

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

参数

detectionConfigurationId
String

AnomalyAlertConfiguration 的唯一标识符。

options
GetAnomaliesForDetectionConfigurationOptions

用于配置请求行为的选项集。

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

包含 AsyncPageable<T> 实例集合的 DataPointAnomaly

例外

detectionConfigurationIdoptions 为 null。

detectionConfigurationId 为空或不是有效的 GUID。

适用于