HardThresholdCondition Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. HardThresholdCondition
- com.
public final class HardThresholdCondition
Type that describes hard-threshold parameters. In hard-threshold mode, metrics advisor watch for any data points that falls out of the boundary and detect such data points as anomalies.
Constructor Summary
Constructor | Description |
---|---|
HardThresholdCondition(AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition) |
Create an instance of Hard |
Method Summary
Modifier and Type | Method and Description |
---|---|
Anomaly |
getAnomalyDetectorDirection()
Gets the direction that detector should use when comparing data point value against lower |
Double |
getLowerBound()
Gets the lower |
Suppress |
getSuppressCondition()
Gets the suppress condition. |
Double |
getUpperBound()
Gets the upper |
Hard |
setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
Sets the direction that detector should use when comparing data point value against lower |
Hard |
setLowerBound(Double lowerBound)
Sets the lower |
Hard |
setSuppressCondition(SuppressCondition suppressCondition)
Sets the suppress condition. |
Hard |
setUpperBound(Double upperBound)
Set the upper |
Methods inherited from java.lang.Object
Constructor Details
HardThresholdCondition
public HardThresholdCondition(AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)
Create an instance of HardThresholdCondition describing how to identify anomalies using hard-threshold mode.
Parameters:
lowerBound
and upperBound
should be considered as an anomaly. A value UP means a data point
above upperBound
is considered as an anomaly, a value DOWN
means a data point below lowerBound
is considered as an anomaly.
Method Details
getAnomalyDetectorDirection
public AnomalyDetectorDirection getAnomalyDetectorDirection()
Gets the direction that detector should use when comparing data point value against lowerBound and/or upperBound.
Returns:
getLowerBound
public Double getLowerBound()
Gets the lowerBound value.
Returns:
getSuppressCondition
public SuppressCondition getSuppressCondition()
Gets the suppress condition.
Returns:
getUpperBound
public Double getUpperBound()
Gets the upperBound value.
Returns:
setAnomalyDetectorDirection
public HardThresholdCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
Sets the direction that detector should use when comparing data point value against lowerBound and/or upperBound.
Parameters:
Returns:
setLowerBound
public HardThresholdCondition setLowerBound(Double lowerBound)
Sets the lowerBound value.
lowerBound be specified when anomalyDetectorDirection is Both or Down.
Parameters:
Returns:
setSuppressCondition
public HardThresholdCondition setSuppressCondition(SuppressCondition suppressCondition)
Sets the suppress condition.
Parameters:
Returns:
setUpperBound
public HardThresholdCondition setUpperBound(Double upperBound)
Set the upperBound value.
upperBound should be specified when anomalyDetectorDirection is Both or Up.
Parameters:
Returns:
Applies to
Azure SDK for Java