Class SuppressCondition
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.SuppressCondition
Type that describes suppress condition for anomalies.
-
Constructor Summary
ConstructorDescriptionSuppressCondition
(int minNumber, double minRatio) Create an instance of SuppressCondition describing how to suppress anomaly reporting. -
Method Summary
Modifier and TypeMethodDescriptionGets the number of latest data points to consider for detection.Gets the percentage of theminNumber
data points to be anomalies before reporting.setMinNumber
(Integer minNumber) Sets the number of latest data points to consider for detection, the value should be in the range : [1, +∞).setMinRatio
(Double minRatio) Sets the percentage of theminNumber
data points to be anomalies before reporting, the value should be in the range : (0, 100].
-
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 lastminNumber
data points are detected as anomalies.- Parameters:
minNumber
- the number of latest data points to consider for detection.minRatio
- the percentage of theminNumber
data points to be anomalies before reporting.
-
-
Method Details
-
getMinNumber
Gets the number of latest data points to consider for detection.- Returns:
- the minimum number value.
-
getMinRatio
Gets the percentage of theminNumber
data points to be anomalies before reporting.- Returns:
- the minimum ratio value.
-
setMinNumber
Sets the number of latest data points to consider for detection, the value should be in the range : [1, +∞).- Parameters:
minNumber
- the minNumber value to set.- Returns:
- the SuppressCondition object itself.
-
setMinRatio
Sets the percentage of theminNumber
data points to be anomalies before reporting, the value should be in the range : (0, 100].- Parameters:
minRatio
- the minRatio value to set.- Returns:
- the SuppressCondition object itself.
-