ChangeThresholdCondition Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. ChangeThresholdCondition
- com.
public final class ChangeThresholdCondition
Type that describes change-threshold parameters. In change-threshold mode, metrics advisor watch for any data points that changes over a change percentage compared to the previous data points and detect such data points as anomalies.
Constructor Summary
Constructor | Description |
---|---|
ChangeThresholdCondition(double changePercentage, int shiftPoint, boolean isWithinRage, AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition) |
Create an instance of Change |
Method Summary
Modifier and Type | Method and Description |
---|---|
Anomaly |
getAnomalyDetectorDirection()
Gets the direction that detector should use when comparing the data point change with change threshold. |
Double |
getChangePercentage()
Gets the percentage of change that will consider a data point as an anomaly. |
Integer |
getShiftPoint()
Gets the number of data points that detector should look back for comparison. |
Suppress |
getSuppressCondition()
Gets the suppress condition. |
Boolean |
isWithinRange()
Gets the flag indicating whether the data point falls within or out of the range is considered as anomaly. |
Change |
setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
Sets the direction that detector should use when comparing the data point change with change threshold. |
Change |
setChangePercentage(Double changePercentage)
Sets the percentage of change that will consider a data point as an anomaly. |
Change |
setShiftPoint(Integer shiftPoint)
Sets the number of data points that detector should look back for comparison. |
Change |
setSuppressCondition(SuppressCondition suppressCondition)
Sets the suppress condition. |
Change |
setWithinRage(Boolean withinRange)
Sets the flag indicating whether the data point falls within or out of the range is considered as anomaly. |
Methods inherited from java.lang.Object
Constructor Details
ChangeThresholdCondition
public ChangeThresholdCondition(double changePercentage, int shiftPoint, boolean isWithinRage, AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)
Create an instance of ChangeThresholdCondition describing how to identify anomalies using change-threshold mode.
Parameters:
isWithinRage
is true.
When isWithinRage
is false, An UP value indicates that
the data point should be considered as an anomaly, if its changes (compared to previous data points)
more than the changePercentage
. DOWN value means a data point
should be considered as anomaly, if the change (compared to previous data points) falls below negated
changePercentage
value.
Method Details
getAnomalyDetectorDirection
public AnomalyDetectorDirection getAnomalyDetectorDirection()
Gets the direction that detector should use when comparing the data point change with change threshold.
Returns:
getChangePercentage
public Double getChangePercentage()
Gets the percentage of change that will consider a data point as an anomaly.
Returns:
getShiftPoint
public Integer getShiftPoint()
Gets the number of data points that detector should look back for comparison.
Returns:
getSuppressCondition
public SuppressCondition getSuppressCondition()
Gets the suppress condition.
Returns:
isWithinRange
public Boolean isWithinRange()
Gets the flag indicating whether the data point falls within or out of the range is considered as anomaly.
Returns:
setAnomalyDetectorDirection
public ChangeThresholdCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
Sets the direction that detector should use when comparing the data point change with change threshold.
Parameters:
Returns:
setChangePercentage
public ChangeThresholdCondition setChangePercentage(Double changePercentage)
Sets the percentage of change that will consider a data point as an anomaly.
Parameters:
Returns:
setShiftPoint
public ChangeThresholdCondition setShiftPoint(Integer shiftPoint)
Sets the number of data points that detector should look back for comparison.
Parameters:
Returns:
setSuppressCondition
public ChangeThresholdCondition setSuppressCondition(SuppressCondition suppressCondition)
Sets the suppress condition.
Parameters:
Returns:
setWithinRage
public ChangeThresholdCondition setWithinRage(Boolean withinRange)
Sets the flag indicating whether the data point falls within or out of the range is considered as anomaly.
Parameters:
Returns:
Applies to
Azure SDK for Java