AnomalyDetectionConfiguration Class
- java.
lang. Object - com.
azure. ai. metricsadvisor. administration. models. AnomalyDetectionConfiguration
- com.
public final class AnomalyDetectionConfiguration
Configuration to detect anomalies in metric time series.
Constructor Summary
Constructor | Description |
---|---|
AnomalyDetectionConfiguration(String name) |
Create a new instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Anomaly |
addSeriesGroupDetectionCondition(MetricSeriesGroupDetectionCondition groupCondition)
Adds anomaly detection condition for a specific group of time series. |
Anomaly |
addSingleSeriesDetectionCondition(MetricSingleSeriesDetectionCondition seriesCondition)
Adds anomaly detection condition for a specific time series. |
String |
getDescription()
Gets the configuration description. |
String |
getId()
Gets the configuration id. |
String |
getMetricId()
Gets the id of metric for which the configuration is applied. |
String |
getName()
Gets the configuration name. |
List<Metric |
getSeriesDetectionConditions()
Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a specific time series. |
List<Metric |
getSeriesGroupDetectionConditions()
Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a group of time series. |
Metric |
getWholeSeriesDetectionCondition()
Gets the common anomaly detection conditions for all time series in the metric. |
Anomaly |
removeSeriesGroupDetectionCondition(DimensionKey seriesGroupKey)
Removes anomaly detection condition for a specific group of time series. |
Anomaly |
removeSingleSeriesDetectionCondition(DimensionKey seriesKey)
Removes anomaly detection condition for a specific time series. |
Anomaly |
setDescription(String description)
Sets the configuration description. |
Anomaly |
setName(String name)
Sets the configuration name. |
Anomaly |
setWholeSeriesDetectionCondition(MetricWholeSeriesDetectionCondition wholeSeriesCondition)
Sets the common anomaly detection conditions for all time series of the metric. |
Methods inherited from java.lang.Object
Constructor Details
AnomalyDetectionConfiguration
public AnomalyDetectionConfiguration(String name)
Create a new instance of MetricAnomalyDetectionConfiguration.
Parameters:
Method Details
addSeriesGroupDetectionCondition
public AnomalyDetectionConfiguration addSeriesGroupDetectionCondition(MetricSeriesGroupDetectionCondition groupCondition)
Adds anomaly detection condition for a specific group of time series.
Parameters:
null
value for this parameter is ignored.
Returns:
addSingleSeriesDetectionCondition
public AnomalyDetectionConfiguration addSingleSeriesDetectionCondition(MetricSingleSeriesDetectionCondition seriesCondition)
Adds anomaly detection condition for a specific time series.
Parameters:
null
value for this parameter is ignored.
Returns:
getDescription
public String getDescription()
Gets the configuration description.
Returns:
getId
public String getId()
Gets the configuration id.
Returns:
getMetricId
public String getMetricId()
Gets the id of metric for which the configuration is applied.
Returns:
getName
public String getName()
Gets the configuration name.
Returns:
getSeriesDetectionConditions
public List
Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a specific time series.
Returns:
getSeriesGroupDetectionConditions
public List
Gets the list of anomaly detection conditions, where each list entry describes detection conditions for a group of time series.
Returns:
getWholeSeriesDetectionCondition
public MetricWholeSeriesDetectionCondition getWholeSeriesDetectionCondition()
Gets the common anomaly detection conditions for all time series in the metric.
Returns:
removeSeriesGroupDetectionCondition
public AnomalyDetectionConfiguration removeSeriesGroupDetectionCondition(DimensionKey seriesGroupKey)
Removes anomaly detection condition for a specific group of time series.
Parameters:
null
value for this parameter is ignored.
Returns:
removeSingleSeriesDetectionCondition
public AnomalyDetectionConfiguration removeSingleSeriesDetectionCondition(DimensionKey seriesKey)
Removes anomaly detection condition for a specific time series.
Parameters:
null
value for this parameter is ignored.
Returns:
setDescription
public AnomalyDetectionConfiguration setDescription(String description)
Sets the configuration description.
Parameters:
Returns:
setName
public AnomalyDetectionConfiguration setName(String name)
Sets the configuration name.
Parameters:
Returns:
setWholeSeriesDetectionCondition
public AnomalyDetectionConfiguration setWholeSeriesDetectionCondition(MetricWholeSeriesDetectionCondition wholeSeriesCondition)
Sets the common anomaly detection conditions for all time series of the metric.
Parameters:
null
value for this parameter is ignored.
Returns:
Applies to
Azure SDK for Java