Sdílet prostřednictvím


MetricsAdvisorClient.GetAnomaliesForDetectionConfigurationAsync Method

Definition

Gets a collection of items describing the anomalies detected by a given AnomalyDetectionConfiguration.

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

Parameters

detectionConfigurationId
String

The unique identifier of the AnomalyAlertConfiguration.

options
GetAnomaliesForDetectionConfigurationOptions

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

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

An AsyncPageable<T> containing the collection of DataPointAnomaly instances.

Exceptions

detectionConfigurationId or options is null.

detectionConfigurationId is empty or not a valid GUID.

Applies to