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

MetricsAdvisorClient.GetAnomaliesForAlert 方法

定义

获取触发指定警报的异常集合。 还必须指定关联的 AnomalyAlertConfiguration

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

参数

alertConfigurationId
String

AnomalyAlertConfiguration 的唯一标识符。

alertId
String

警报的唯一标识符。

options
GetAnomaliesForAlertOptions

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

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

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

例外

alertConfigurationIdalertId 为 null。

alertConfigurationIdalertId 为空;或 alertConfigurationId 不是有效的 GUID。

适用于