Class AnomalyDetectionConfiguration
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.AnomalyDetectionConfiguration
Configuration to detect anomalies in metric time series.
-
Constructor Summary
ConstructorDescriptionCreate a new instance of MetricAnomalyDetectionConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionaddSeriesGroupDetectionCondition
(MetricSeriesGroupDetectionCondition groupCondition) Adds anomaly detection condition for a specific group of time series.addSingleSeriesDetectionCondition
(MetricSingleSeriesDetectionCondition seriesCondition) Adds anomaly detection condition for a specific time series.Gets the configuration description.getId()
Gets the configuration id.Gets the id of metric for which the configuration is applied.getName()
Gets the configuration name.Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a specific time series.Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a group of time series.Gets the common anomaly detection conditions for all time series in the metric.removeSeriesGroupDetectionCondition
(DimensionKey seriesGroupKey) Removes anomaly detection condition for a specific group of time series.removeSingleSeriesDetectionCondition
(DimensionKey seriesKey) Removes anomaly detection condition for a specific time series.setDescription
(String description) Sets the configuration description.Sets the configuration name.setWholeSeriesDetectionCondition
(MetricWholeSeriesDetectionCondition wholeSeriesCondition) Sets the common anomaly detection conditions for all time series of the metric.
-
Constructor Details
-
AnomalyDetectionConfiguration
Create a new instance of MetricAnomalyDetectionConfiguration.- Parameters:
name
- The configuration name.
-
-
Method Details
-
getId
Gets the configuration id.- Returns:
- The configuration id.
-
getMetricId
Gets the id of metric for which the configuration is applied.- Returns:
- The metric id.
-
getName
Gets the configuration name.- Returns:
- The configuration name.
-
getDescription
Gets the configuration description.- Returns:
- The configuration description.
-
getWholeSeriesDetectionCondition
Gets the common anomaly detection conditions for all time series in the metric.- Returns:
- The detection conditions for all time series.
-
getSeriesGroupDetectionConditions
Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a group of time series.- Returns:
- The list of anomaly detection conditions for time series group.
-
getSeriesDetectionConditions
Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a specific time series.- Returns:
- The list of anomaly detection conditions for time series.
-
setName
Sets the configuration name.- Parameters:
name
- The configuration name.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-
setDescription
Sets the configuration description.- Parameters:
description
- The configuration description.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-
setWholeSeriesDetectionCondition
public AnomalyDetectionConfiguration setWholeSeriesDetectionCondition(MetricWholeSeriesDetectionCondition wholeSeriesCondition) Sets the common anomaly detection conditions for all time series of the metric.- Parameters:
wholeSeriesCondition
- The detection conditions for all time series, anull
value for this parameter is ignored.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-
addSeriesGroupDetectionCondition
public AnomalyDetectionConfiguration addSeriesGroupDetectionCondition(MetricSeriesGroupDetectionCondition groupCondition) Adds anomaly detection condition for a specific group of time series.- Parameters:
groupCondition
- The detection conditions for a group of time series, anull
value for this parameter is ignored.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-
removeSeriesGroupDetectionCondition
public AnomalyDetectionConfiguration removeSeriesGroupDetectionCondition(DimensionKey seriesGroupKey) Removes anomaly detection condition for a specific group of time series.- Parameters:
seriesGroupKey
- Identifies the time series group to remove the conditions for,null
value for this parameter is ignored.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-
addSingleSeriesDetectionCondition
public AnomalyDetectionConfiguration addSingleSeriesDetectionCondition(MetricSingleSeriesDetectionCondition seriesCondition) Adds anomaly detection condition for a specific time series.- Parameters:
seriesCondition
- The detection conditions for a specific time series, anull
value for this parameter is ignored.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-
removeSingleSeriesDetectionCondition
Removes anomaly detection condition for a specific time series.- Parameters:
seriesKey
- The key identifying the time series, anull
value for this parameter is ignored.- Returns:
- The MetricAnomalyDetectionConfiguration object itself.
-