MetricsAdvisorClient.GetIncidentRootCausesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET