Share via


MetricsAdvisorClient.GetIncidentRootCausesAsync Method

Definition

Overloads

GetIncidentRootCausesAsync(AnomalyIncident, CancellationToken)

Gets the suggestions for likely root causes of an incident.

GetIncidentRootCausesAsync(String, String, CancellationToken)

Gets the suggestions for likely root causes of an incident.

GetIncidentRootCausesAsync(AnomalyIncident, CancellationToken)

Source:
MetricsAdvisorClient.cs

Gets the suggestions for likely root causes of an incident.

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)

Parameters

incident
AnomalyIncident

The AnomalyIncident from which root causes will be returned.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

An AsyncPageable<T> containing the collection of IncidentRootCauses.

Exceptions

incident is null.

Applies to

GetIncidentRootCausesAsync(String, String, CancellationToken)

Source:
MetricsAdvisorClient.cs

Gets the suggestions for likely root causes of an incident.

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)

Parameters

detectionConfigurationId
String

The unique identifier of the AnomalyAlertConfiguration.

incidentId
String

The unique identifier of the AnomalyIncident.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

An AsyncPageable<T> containing the collection of IncidentRootCauses.

Exceptions

detectionConfigurationId or incidentId is null.

detectionConfigurationId or incidentId is empty; or detectionConfigurationId is not a valid GUID.

Applies to