SuppressCondition Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. SuppressCondition
- com.
public final class SuppressCondition
Type that describes suppress condition for anomalies.
Constructor Summary
Constructor | Description |
---|---|
SuppressCondition(int minNumber, double minRatio) |
Create an instance of Suppress |
Method Summary
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 |
Suppress |
setMinNumber(Integer minNumber)
Sets the number of latest data points to consider for detection, the value should be in the range : [1, +\u221e). |
Suppress |
setMinRatio(Double minRatio)
Sets the percentage of the |
Methods inherited from java.lang.Object
Constructor Details
SuppressCondition
public SuppressCondition(int minNumber, double minRatio)
Create an instance of SuppressCondition describing how to suppress anomaly reporting.
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.
Parameters:
minNumber
data points to be anomalies before reporting.
Method Details
getMinNumber
public Integer getMinNumber()
Gets the number of latest data points to consider for detection.
Returns:
getMinRatio
public Double getMinRatio()
Gets the percentage of the minNumber
data points to be anomalies before reporting.
Returns:
setMinNumber
public SuppressCondition setMinNumber(Integer minNumber)
Sets the number of latest data points to consider for detection, the value should be in the range : [1, +\u221e).
Parameters:
Returns:
setMinRatio
public 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].
Parameters:
Returns:
Applies to
Azure SDK for Java