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

MetricsAdvisorClient.GetIncidentRootCausesAsync 方法

定义

重载

GetIncidentRootCausesAsync(AnomalyIncident, CancellationToken)

获取有关事件可能根本原因的建议。

GetIncidentRootCausesAsync(String, String, CancellationToken)

获取有关事件可能根本原因的建议。

GetIncidentRootCausesAsync(AnomalyIncident, CancellationToken)

Source:
MetricsAdvisorClient.cs

获取有关事件可能根本原因的建议。

public virtual Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.IncidentRootCause> GetIncidentRootCausesAsync (Azure.AI.MetricsAdvisor.Models.AnomalyIncident incident, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIncidentRootCausesAsync : Azure.AI.MetricsAdvisor.Models.AnomalyIncident * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.IncidentRootCause>
override this.GetIncidentRootCausesAsync : Azure.AI.MetricsAdvisor.Models.AnomalyIncident * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.IncidentRootCause>
Public Overridable Function GetIncidentRootCausesAsync (incident As AnomalyIncident, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of IncidentRootCause)

参数

incident
AnomalyIncident

将从 AnomalyIncident 中返回根本原因的 。

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

包含 AsyncPageable<T> 的集合的 IncidentRootCause

例外

incident 为 null。

适用于

GetIncidentRootCausesAsync(String, String, CancellationToken)

Source:
MetricsAdvisorClient.cs

获取有关事件可能根本原因的建议。

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

参数

detectionConfigurationId
String

AnomalyAlertConfiguration 的唯一标识符。

incidentId
String

AnomalyIncident 的唯一标识符。

cancellationToken
CancellationToken

控制 CancellationToken 请求生存期的 。

返回

包含 AsyncPageable<T> 的集合的 IncidentRootCause

例外

detectionConfigurationIdincidentId 为 null。

detectionConfigurationIdincidentId 为空;或 detectionConfigurationId 不是有效的 GUID。

适用于