MetricsAdvisorClient.GetAnomaliesForAlert(String, String, GetAnomaliesForAlertOptions, CancellationToken) Method

Definition

Gets the collection of anomalies that triggered a specified alert. The associated AnomalyAlertConfiguration must also be specified.

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)

Parameters

alertConfigurationId
String

The unique identifier of the AnomalyAlertConfiguration.

alertId
String

The unique identifier of the alert.

options
GetAnomaliesForAlertOptions

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

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Pageable<DataPointAnomaly>

A Pageable<T> containing the collection of DataPointAnomaly instances.

Exceptions

alertConfigurationId or alertId is null.

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

Applies to