Compartilhar via


SuppressCondition Class

  • java.lang.Object
    • com.azure.ai.metricsadvisor.administration.models.SuppressCondition

public final class SuppressCondition

Type that describes suppress condition for anomalies.

Constructor Summary

Constructor Description
SuppressCondition(int minNumber, double minRatio)

Create an instance of SuppressCondition describing how to suppress anomaly reporting.

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 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, +\u221e).

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].

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 - the number of latest data points to consider for detection.
minRatio - the percentage of the 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:

the minimum number value.

getMinRatio

public Double getMinRatio()

Gets the percentage of the minNumber data points to be anomalies before reporting.

Returns:

the minimum ratio value.

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:

minNumber - the minNumber value to set.

Returns:

the SuppressCondition object itself.

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:

minRatio - the minRatio value to set.

Returns:

the SuppressCondition object itself.

Applies to