public final class SuppressCondition extends Object
Constructor and Description |
---|
SuppressCondition(int minNumber,
double minRatio)
Create an instance of SuppressCondition describing how to suppress anomaly reporting.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getMinNumber()
Gets the number of latest data points to consider for detection.
|
Double |
getMinRatio()
Gets the percentage of the
minNumber data points to be anomalies before reporting. |
SuppressCondition |
setMinNumber(Integer minNumber)
Sets the number of latest data points to consider for detection, the value should
be in the range : [1, +∞).
|
SuppressCondition |
setMinRatio(Double minRatio)
Sets the percentage of the
minNumber data points to be anomalies before reporting,
the value should be in the range : (0, 100]. |
public SuppressCondition(int minNumber, double minRatio)
Anomalies from metrics with higher granularity can be noisy, using SuppressCondition
user can inform the detector to not to report the anomalies until minRatio
percentage of last minNumber
data points are detected as anomalies.
minNumber
- the number of latest data points to consider for detection.minRatio
- the percentage of the minNumber
data points to be anomalies before reporting.public Integer getMinNumber()
public Double getMinRatio()
minNumber
data points to be anomalies before reporting.public SuppressCondition setMinNumber(Integer minNumber)
minNumber
- the minNumber value to set.public SuppressCondition setMinRatio(Double minRatio)
minNumber
data points to be anomalies before reporting,
the value should be in the range : (0, 100].minRatio
- the minRatio value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.