public static interface PutAnomalyDetectorRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<PutAnomalyDetectorRequest.Builder,PutAnomalyDetectorRequest>
| Modifier and Type | Method and Description |
|---|---|
PutAnomalyDetectorRequest.Builder |
configuration(AnomalyDetectorConfiguration configuration)
The configuration specifies details about how the anomaly detection model is to be trained, including time
ranges to exclude when training and updating the model.
|
default PutAnomalyDetectorRequest.Builder |
configuration(Consumer<AnomalyDetectorConfiguration.Builder> configuration)
The configuration specifies details about how the anomaly detection model is to be trained, including time
ranges to exclude when training and updating the model.
|
PutAnomalyDetectorRequest.Builder |
dimensions(Collection<Dimension> dimensions)
Deprecated.
Use SingleMetricAnomalyDetector.
|
PutAnomalyDetectorRequest.Builder |
dimensions(Consumer<Dimension.Builder>... dimensions)
Deprecated.
Use SingleMetricAnomalyDetector.
|
PutAnomalyDetectorRequest.Builder |
dimensions(Dimension... dimensions)
Deprecated.
Use SingleMetricAnomalyDetector.
|
default PutAnomalyDetectorRequest.Builder |
metricMathAnomalyDetector(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector)
The metric math anomaly detector to be created.
|
PutAnomalyDetectorRequest.Builder |
metricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The metric math anomaly detector to be created.
|
PutAnomalyDetectorRequest.Builder |
metricName(String metricName)
Deprecated.
Use SingleMetricAnomalyDetector.
|
PutAnomalyDetectorRequest.Builder |
namespace(String namespace)
Deprecated.
Use SingleMetricAnomalyDetector.
|
PutAnomalyDetectorRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutAnomalyDetectorRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
default PutAnomalyDetectorRequest.Builder |
singleMetricAnomalyDetector(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector)
A single metric anomaly detector to be created.
|
PutAnomalyDetectorRequest.Builder |
singleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
A single metric anomaly detector to be created.
|
PutAnomalyDetectorRequest.Builder |
stat(String stat)
Deprecated.
Use SingleMetricAnomalyDetector.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, build@Deprecated PutAnomalyDetectorRequest.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.@Deprecated PutAnomalyDetectorRequest.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.@Deprecated PutAnomalyDetectorRequest.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.@Deprecated PutAnomalyDetectorRequest.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.@Deprecated PutAnomalyDetectorRequest.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 theDimension.Builder avoiding the need to create one
manually via Dimension.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #dimensions(List.
dimensions - a consumer that will call methods on
Dimension.Builder#dimensions(java.util.Collection) @Deprecated PutAnomalyDetectorRequest.Builder stat(String stat)
The statistic to use for the metric and the anomaly detection model.
stat - The statistic to use for the metric and the anomaly detection model.PutAnomalyDetectorRequest.Builder configuration(AnomalyDetectorConfiguration configuration)
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. You can specify as many as 10 time ranges.
The configuration can also include the time zone to use for the metric.
configuration - The configuration specifies details about how the anomaly detection model is to be trained, including
time ranges to exclude when training and updating the model. You can specify as many as 10 time
ranges.
The configuration can also include the time zone to use for the metric.
default PutAnomalyDetectorRequest.Builder configuration(Consumer<AnomalyDetectorConfiguration.Builder> configuration)
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. You can specify as many as 10 time ranges.
The configuration can also include the time zone to use for the metric.
This is a convenience method that creates an instance of theAnomalyDetectorConfiguration.Builder
avoiding the need to create one manually via AnomalyDetectorConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to configuration(AnomalyDetectorConfiguration).
configuration - a consumer that will call methods on AnomalyDetectorConfiguration.Builderconfiguration(AnomalyDetectorConfiguration)PutAnomalyDetectorRequest.Builder singleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
A single metric anomaly detector to be created.
When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same
operation:
Dimensions
MetricName
Namespace
Stat
the MetricMatchAnomalyDetector parameters of PutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector.
singleMetricAnomalyDetector - A single metric anomaly detector to be created.
When using SingleMetricAnomalyDetector, you cannot include the following parameters in
the same operation:
Dimensions
MetricName
Namespace
Stat
the MetricMatchAnomalyDetector parameters of PutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector.
default PutAnomalyDetectorRequest.Builder singleMetricAnomalyDetector(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector)
A single metric anomaly detector to be created.
When using SingleMetricAnomalyDetector, you cannot include the following parameters in the same
operation:
Dimensions
MetricName
Namespace
Stat
the MetricMatchAnomalyDetector parameters of PutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector.
SingleMetricAnomalyDetector.Builder
avoiding the need to create one manually via SingleMetricAnomalyDetector.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to singleMetricAnomalyDetector(SingleMetricAnomalyDetector).
singleMetricAnomalyDetector - a consumer that will call methods on SingleMetricAnomalyDetector.BuildersingleMetricAnomalyDetector(SingleMetricAnomalyDetector)PutAnomalyDetectorRequest.Builder metricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The metric math anomaly detector to be created.
When using MetricMathAnomalyDetector, you cannot include the following parameters in the same
operation:
Dimensions
MetricName
Namespace
Stat
the SingleMetricAnomalyDetector parameters of PutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector.
metricMathAnomalyDetector - The metric math anomaly detector to be created.
When using MetricMathAnomalyDetector, you cannot include the following parameters in the
same operation:
Dimensions
MetricName
Namespace
Stat
the SingleMetricAnomalyDetector parameters of PutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector.
default PutAnomalyDetectorRequest.Builder metricMathAnomalyDetector(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector)
The metric math anomaly detector to be created.
When using MetricMathAnomalyDetector, you cannot include the following parameters in the same
operation:
Dimensions
MetricName
Namespace
Stat
the SingleMetricAnomalyDetector parameters of PutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector.
MetricMathAnomalyDetector.Builder
avoiding the need to create one manually via MetricMathAnomalyDetector.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to metricMathAnomalyDetector(MetricMathAnomalyDetector).
metricMathAnomalyDetector - a consumer that will call methods on MetricMathAnomalyDetector.BuildermetricMathAnomalyDetector(MetricMathAnomalyDetector)PutAnomalyDetectorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutAnomalyDetectorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.