public static interface SingleMetricAnomalyDetector.Builder extends SdkPojo, CopyableBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>
Modifier and Type | Method and Description |
---|---|
SingleMetricAnomalyDetector.Builder |
dimensions(Collection<Dimension> dimensions)
The metric dimensions to create the anomaly detection model for.
|
SingleMetricAnomalyDetector.Builder |
dimensions(Consumer<Dimension.Builder>... dimensions)
The metric dimensions to create the anomaly detection model for.
|
SingleMetricAnomalyDetector.Builder |
dimensions(Dimension... dimensions)
The metric dimensions to create the anomaly detection model for.
|
SingleMetricAnomalyDetector.Builder |
metricName(String metricName)
The name of the metric to create the anomaly detection model for.
|
SingleMetricAnomalyDetector.Builder |
namespace(String namespace)
The namespace of the metric to create the anomaly detection model for.
|
SingleMetricAnomalyDetector.Builder |
stat(String stat)
The statistic to use for the metric and anomaly detection model.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
SingleMetricAnomalyDetector.Builder namespace(String namespace)
The namespace of the metric to create the anomaly detection model for.
namespace
- The namespace of the metric to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder metricName(String metricName)
The name of the metric to create the anomaly detection model for.
metricName
- The name of the metric to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder dimensions(Collection<Dimension> dimensions)
The metric dimensions to create the anomaly detection model for.
dimensions
- The metric dimensions to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder dimensions(Dimension... dimensions)
The metric dimensions to create the anomaly detection model for.
dimensions
- The metric dimensions to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
The metric dimensions to create the anomaly detection model for.
This is a convenience method that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #dimensions(List)
.dimensions
- a consumer that will call methods on List.Builder
#dimensions(List)
SingleMetricAnomalyDetector.Builder stat(String stat)
The statistic to use for the metric and anomaly detection model.
stat
- The statistic to use for the metric and anomaly detection model.Copyright © 2022. All rights reserved.