Freigeben über


MetricSingleSeriesDetectionCondition Class

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

public final class MetricSingleSeriesDetectionCondition

Conditions to detect anomalies in a specific time series.

Constructor Summary

Constructor Description
MetricSingleSeriesDetectionCondition(DimensionKey seriesKey)

Create an instance of MetricSingleSeriesAnomalyDetectionCondition.

Method Summary

Modifier and Type Method and Description
ChangeThresholdCondition getChangeThresholdCondition()

Gets the change threshold condition to detect anomalies.

DetectionConditionOperator getConditionOperator()

Gets the logical operator applied across conditions.

HardThresholdCondition getHardThresholdCondition()

Gets the hard threshold condition to detect anomalies.

DimensionKey getSeriesKey()

Get the time series key.

SmartDetectionCondition getSmartDetectionCondition()

Gets the anomaly smart detection condition.

MetricSingleSeriesDetectionCondition setChangeThresholdCondition(ChangeThresholdCondition changeThresholdCondition)

Sets the change threshold condition.

MetricSingleSeriesDetectionCondition setConditionOperator(DetectionConditionOperator conditionOperator)

Sets the logical operator to apply across conditions.

MetricSingleSeriesDetectionCondition setHardThresholdCondition(HardThresholdCondition hardThresholdCondition)

Sets the hard threshold condition.

MetricSingleSeriesDetectionCondition setSmartDetectionCondition(SmartDetectionCondition smartDetectionCondition)

Sets the smart detection condition.

Methods inherited from java.lang.Object

Constructor Details

MetricSingleSeriesDetectionCondition

public MetricSingleSeriesDetectionCondition(DimensionKey seriesKey)

Create an instance of MetricSingleSeriesAnomalyDetectionCondition.

Parameters:

seriesKey - The time series key that identifies the series to apply the detection condition.

Method Details

getChangeThresholdCondition

public ChangeThresholdCondition getChangeThresholdCondition()

Gets the change threshold condition to detect anomalies.

The change threshold condition defines change percentage; the value of a data point is compared with previous data points; if the change percentage of the value is in or out of the range, then that data point is detected as anomalies.

Returns:

The change threshold condition.

getConditionOperator

public DetectionConditionOperator getConditionOperator()

Gets the logical operator applied across conditions.

Returns:

The logical operator applied across conditions.

getHardThresholdCondition

public HardThresholdCondition getHardThresholdCondition()

Gets the hard threshold condition to detect anomalies.

The smart detection condition defines the numerical value to adjust the tolerance of the anomalies, the higher the value, the narrower the band (upper/lower bounds) around time series. The series data points those are not within the boundaries are detected as anomalies.

Returns:

The hard threshold condition.

getSeriesKey

public DimensionKey getSeriesKey()

Get the time series key.

Returns:

The time series key.

getSmartDetectionCondition

public SmartDetectionCondition getSmartDetectionCondition()

Gets the anomaly smart detection condition.

The smart detection condition defines the numerical value to adjust the tolerance of the anomalies, the higher the value, the narrower the band (upper/lower bounds) around time series. The series data points those are not within such boundaries are detected as anomalies.

Returns:

The Smart detection condition.

setChangeThresholdCondition

public MetricSingleSeriesDetectionCondition setChangeThresholdCondition(ChangeThresholdCondition changeThresholdCondition)

Sets the change threshold condition.

The change threshold condition defines change percentage; the value of a data point is compared with previous data points; if the change percentage of the value is in or out of the range, then that data point is detected as anomalies.

Parameters:

changeThresholdCondition - The change threshold condition.

Returns:

The MetricSingleSeriesDetectionCondition object itself.

setConditionOperator

public MetricSingleSeriesDetectionCondition setConditionOperator(DetectionConditionOperator conditionOperator)

Sets the logical operator to apply across conditions.

Parameters:

conditionOperator - The logical operator.

Returns:

The MetricSingleSeriesDetectionCondition object itself.

setHardThresholdCondition

public MetricSingleSeriesDetectionCondition setHardThresholdCondition(HardThresholdCondition hardThresholdCondition)

Sets the hard threshold condition.

The hard threshold condition defines boundaries, the series data points those are not within the boundaries are detected as anomalies.

Parameters:

hardThresholdCondition - The hard threshold condition.

Returns:

The MetricSingleSeriesDetectionCondition object itself.

setSmartDetectionCondition

public MetricSingleSeriesDetectionCondition setSmartDetectionCondition(SmartDetectionCondition smartDetectionCondition)

Sets the smart detection condition.

The smart detection condition defines the numerical value to adjust the tolerance of the anomalies, the higher the value, the narrower the band (upper/lower bounds) around time series. The series data points those are not within such boundaries are detected as anomalies.

Parameters:

smartDetectionCondition - The smart detection condition.

Returns:

The MetricSingleSeriesDetectionCondition object itself.

Applies to