Partager via


SmartDetectionCondition Class

  • java.lang.Object
    • com.azure.ai.metricsadvisor.administration.models.SmartDetectionCondition

public final class SmartDetectionCondition

Type that describes smart-detection parameters. In smart-detection mode, metrics advisor uses multiple ML based algorithms to compute severity value of data points, detector detect anomalies by checking whether those values falls within or outside of the range derived from sensitivity parameter.

Constructor Summary

Constructor Description
SmartDetectionCondition(double sensitivity, AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)

Create an instance of SmartDetectionCondition describing how to identify anomalies using smart-detection mode.

Method Summary

Modifier and Type Method and Description
AnomalyDetectorDirection getAnomalyDetectorDirection()

Gets the direction that detector should use when comparing data point value against range derived from sensitivity .

Double getSensitivity()

Gets the sensitivity value.

SuppressCondition getSuppressCondition()

Gets the suppress condition.

SmartDetectionCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)

Sets the direction that detector should use when comparing data point value against range derived from the sensitivity.

SmartDetectionCondition setSensitivity(double sensitivity)

Sets the sensitivity value, it should be in the range (0, 100].

SmartDetectionCondition setSuppressCondition(SuppressCondition suppressCondition)

Sets the suppress condition.

Methods inherited from java.lang.Object

Constructor Details

SmartDetectionCondition

public SmartDetectionCondition(double sensitivity, AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)

Create an instance of SmartDetectionCondition describing how to identify anomalies using smart-detection mode.

Parameters:

sensitivity - value that adjust the tolerance of anomalies, visually higher the value narrower the band (lower and upper bounds) around the time series.
detectorDirection - a value BOTH indicates that any data point with severity value not within the range derived from sensitivity should be considered as an anomaly. A value UP means a data point severity value above the upper bound of the range is considered as an anomaly, a value DOWN means a data point severity value below lower bound of the range is considered as an anomaly.
suppressCondition - the condition to aggregate the anomaly detection reporting, suppressing the reporting of individual anomalies helps to avoid noises, especially if the metrics have fine granularity.

Method Details

getAnomalyDetectorDirection

public AnomalyDetectorDirection getAnomalyDetectorDirection()

Gets the direction that detector should use when comparing data point value against range derived from sensitivity .

Returns:

the detector direction.

getSensitivity

public Double getSensitivity()

Gets the sensitivity value.

the sensitivity value adjust the tolerance of anomalies, visually higher the value narrower the band (lower and upper bounds) around the time series.

Returns:

the sensitivity value.

getSuppressCondition

public SuppressCondition getSuppressCondition()

Gets the suppress condition.

Returns:

the suppress condition value.

setAnomalyDetectorDirection

public SmartDetectionCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)

Sets the direction that detector should use when comparing data point value against range derived from the sensitivity.

Parameters:

detectorDirection - the detector direction

Returns:

the HardThresholdCondition object itself.

setSensitivity

public SmartDetectionCondition setSensitivity(double sensitivity)

Sets the sensitivity value, it should be in the range (0, 100].

Parameters:

sensitivity - the sensitivity value to set.

Returns:

the SmartDetectionCondition object itself.

setSuppressCondition

public SmartDetectionCondition setSuppressCondition(SuppressCondition suppressCondition)

Sets the suppress condition.

Parameters:

suppressCondition - the suppress condition

Returns:

the HardThresholdCondition object itself.

Applies to