Share via


MetricsAdvisorClient.GetIncidentsForAlert Method

Definition

Given an alert, gets the incidents associated with the anomalies that triggered it. The associated AnomalyAlertConfiguration must also be specified.

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

Parameters

alertConfigurationId
String

The unique identifier of the AnomalyAlertConfiguration.

alertId
String

The unique identifier of the alert.

options
GetIncidentsForAlertOptions

An optional set of options used to configure the request's behavior.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Pageable<T> containing the collection of AnomalyIncidents.

Exceptions

alertConfigurationId or alertId is null.

alertConfigurationId or alertId is empty; or alertConfigurationId is not a valid GUID.

Applies to