public final class SmartDetectionCondition extends Object
Constructor and Description |
---|
SmartDetectionCondition(double sensitivity,
AnomalyDetectorDirection detectorDirection,
SuppressCondition suppressCondition)
Create an instance of SmartDetectionCondition describing how to identify anomalies using
smart-detection mode.
|
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.
|
public SmartDetectionCondition(double sensitivity, AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)
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 AnomalyDetectorDirection.BOTH
indicates that any
data point with severity value not within the range derived from sensitivity
should be considered as an anomaly. A value AnomalyDetectorDirection.UP
means
a data point severity value above the upper bound of the range is considered as an anomaly,
a value AnomalyDetectorDirection.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.public Double getSensitivity()
the sensitivity value adjust the tolerance of anomalies, visually higher the value narrower the band (lower and upper bounds) around the time series.
public AnomalyDetectorDirection getAnomalyDetectorDirection()
public SuppressCondition getSuppressCondition()
public SmartDetectionCondition setSensitivity(double sensitivity)
sensitivity
- the sensitivity value to set.public SmartDetectionCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
detectorDirection
- the detector directionpublic SmartDetectionCondition setSuppressCondition(SuppressCondition suppressCondition)
suppressCondition
- the suppress conditionCopyright © 2021 Microsoft Corporation. All rights reserved.