public final class ChangeThresholdCondition extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
AnomalyDetectorDirection |
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.
|
SuppressCondition |
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.
|
ChangeThresholdCondition |
setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
Sets the direction that detector should use when comparing the data point change with change threshold.
|
ChangeThresholdCondition |
setChangePercentage(Double changePercentage)
Sets the percentage of change that will consider a data point as an anomaly.
|
ChangeThresholdCondition |
setShiftPoint(Integer shiftPoint)
Sets the number of data points that detector should look back for comparison.
|
ChangeThresholdCondition |
setSuppressCondition(SuppressCondition suppressCondition)
Sets the suppress condition.
|
ChangeThresholdCondition |
setWithinRage(Boolean withinRange)
Sets the flag indicating whether the data point falls within or out of the range is considered as anomaly.
|
public ChangeThresholdCondition(double changePercentage, int shiftPoint, boolean isWithinRage, AnomalyDetectorDirection detectorDirection, SuppressCondition suppressCondition)
changePercentage
- the percentage of change that will considered as an anomaly,
the data point will be compared with previously captured data points
for computing the change.shiftPoint
- the number of data points that detector should look back for comparison.isWithinRage
- when set to true, data point is an anomaly when the value falls in the range;
in this case, detectorDirection must be Both. When set false, the data point
is an anomaly when the value falls out of the range.detectorDirection
- must be AnomalyDetectorDirection.BOTH
when isWithinRage
is true.
When isWithinRage
is false, An AnomalyDetectorDirection.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
. AnomalyDetectorDirection.DOWN
value means a data point
should be considered as anomaly, if the change (compared to previous data points) falls below negated
changePercentage
value.suppressCondition
- the condition to aggregate the anomaly detection reporting,
suppressing the reporting of individual anomalies helps to avoid noises, especially if the metrics
have fine granularity.public Double getChangePercentage()
public Integer getShiftPoint()
public Boolean isWithinRange()
public AnomalyDetectorDirection getAnomalyDetectorDirection()
public SuppressCondition getSuppressCondition()
public ChangeThresholdCondition setChangePercentage(Double changePercentage)
changePercentage
- the change percentage value.public ChangeThresholdCondition setShiftPoint(Integer shiftPoint)
shiftPoint
- the shift point value.public ChangeThresholdCondition setWithinRage(Boolean withinRange)
withinRange
- the withinRange value.public ChangeThresholdCondition setAnomalyDetectorDirection(AnomalyDetectorDirection detectorDirection)
detectorDirection
- the detector directionpublic ChangeThresholdCondition setSuppressCondition(SuppressCondition suppressCondition)
suppressCondition
- the suppress conditionCopyright © 2021 Microsoft Corporation. All rights reserved.