public final class HardThresholdCondition extends Object
Constructor and Description |
---|
HardThresholdCondition(AnomalyDetectorDirection detectorDirection,
SuppressCondition suppressCondition)
Create an instance of HardThresholdCondition describing how to identify anomalies using
hard-threshold mode.
|
Modifier and Type | Method and Description |
---|---|
AnomalyDetectorDirection |
getAnomalyDetectorDirection()
Gets the direction that detector should use when comparing data point
value against lowerBound and/or upperBound.
|
Double |
getLowerBound()
Gets the lowerBound value.
|
SuppressCondition |
getSuppressCondition()
Gets the suppress condition.
|
Double |
getUpperBound()
Gets the upperBound value.
|
HardThresholdCondition |
setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
Sets the direction that detector should use when comparing data point value against lowerBound and/or upperBound.
|
HardThresholdCondition |
setLowerBound(Double lowerBound)
Sets the lowerBound value.
|
HardThresholdCondition |
setSuppressCondition(SuppressCondition suppressCondition)
Sets the suppress condition.
|
HardThresholdCondition |
setUpperBound(Double upperBound)
Set the upperBound value.
|
public HardThresholdCondition(AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)
detectorDirection
- a value AnomalyDetectorDirection.BOTH
indicates that any
data point with a value not within the range defined by lowerBound
and upperBound
should be considered as an anomaly. A value AnomalyDetectorDirection.UP
means a data point
above upperBound
is considered as an anomaly, a value AnomalyDetectorDirection.DOWN
means a data point below lowerBound
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 getLowerBound()
public Double getUpperBound()
public AnomalyDetectorDirection getAnomalyDetectorDirection()
public SuppressCondition getSuppressCondition()
public HardThresholdCondition setLowerBound(Double lowerBound)
lowerBound be specified when anomalyDetectorDirection is Both or Down.
lowerBound
- the lowerBound value to set.public HardThresholdCondition setUpperBound(Double upperBound)
upperBound should be specified when anomalyDetectorDirection is Both or Up.
upperBound
- the upperBound value to set.public HardThresholdCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
detectorDirection
- the detector directionpublic HardThresholdCondition setSuppressCondition(SuppressCondition suppressCondition)
suppressCondition
- the suppress conditionCopyright © 2021 Microsoft Corporation. All rights reserved.