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

MetricsAdvisorClient.GetIncidentsForDetectionConfigurationAsync 方法

定义

获取描述给定 AnomalyDetectionConfiguration检测到的事件的项的集合。

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

参数

detectionConfigurationId
String

AnomalyAlertConfiguration 的唯一标识符。

options
GetIncidentsForDetectionConfigurationOptions

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

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

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

例外

detectionConfigurationIdoptions 为 null。

detectionConfigurationId 为空或 GUID 无效。

适用于