Interface PutAnomalyDetectorRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<PutAnomalyDetectorRequest.Builder,
,PutAnomalyDetectorRequest> SdkBuilder<PutAnomalyDetectorRequest.Builder,
,PutAnomalyDetectorRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutAnomalyDetectorRequest
-
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(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.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.dimensions
(Collection<Dimension> dimensions) Deprecated.Use SingleMetricAnomalyDetector.dimensions
(Consumer<Dimension.Builder>... dimensions) Deprecated.Use SingleMetricAnomalyDetector.dimensions
(Dimension... dimensions) Deprecated.Use SingleMetricAnomalyDetector.metricCharacteristics
(Consumer<MetricCharacteristics.Builder> metricCharacteristics) Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models.metricCharacteristics
(MetricCharacteristics metricCharacteristics) Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models.metricMathAnomalyDetector
(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector) The metric math anomaly detector to be created.metricMathAnomalyDetector
(MetricMathAnomalyDetector metricMathAnomalyDetector) The metric math anomaly detector to be created.metricName
(String metricName) Deprecated.Use SingleMetricAnomalyDetector.Deprecated.Use SingleMetricAnomalyDetector.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.singleMetricAnomalyDetector
(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector) A single metric anomaly detector to be created.singleMetricAnomalyDetector
(SingleMetricAnomalyDetector singleMetricAnomalyDetector) A single metric anomaly detector to be created.Deprecated.Use SingleMetricAnomalyDetector.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
namespace
Deprecated.Use SingleMetricAnomalyDetector.The namespace of the metric to create the anomaly detection model for.
- Parameters:
namespace
- The namespace of the metric to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
Deprecated.Use SingleMetricAnomalyDetector.The name of the metric to create the anomaly detection model for.
- Parameters:
metricName
- The name of the metric to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Deprecated.Use SingleMetricAnomalyDetector.The metric dimensions to create the anomaly detection model for.
- Parameters:
dimensions
- The metric dimensions to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Deprecated.Use SingleMetricAnomalyDetector.The metric dimensions to create the anomaly detection model for.
- Parameters:
dimensions
- The metric dimensions to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Deprecated.Use SingleMetricAnomalyDetector.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 viaDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensions(List<Dimension>)
.- Parameters:
dimensions
- a consumer that will call methods onDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stat
Deprecated.Use SingleMetricAnomalyDetector.The statistic to use for the metric and the anomaly detection model.
- Parameters:
stat
- The statistic to use for the metric and the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
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 viaAnomalyDetectorConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(AnomalyDetectorConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onAnomalyDetectorConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricCharacteristics
PutAnomalyDetectorRequest.Builder metricCharacteristics(MetricCharacteristics metricCharacteristics) Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models. Currently, it includes the
PeriodicSpikes
parameter.- Parameters:
metricCharacteristics
- Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models. Currently, it includes thePeriodicSpikes
parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricCharacteristics
default PutAnomalyDetectorRequest.Builder metricCharacteristics(Consumer<MetricCharacteristics.Builder> metricCharacteristics) Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models. Currently, it includes the
This is a convenience method that creates an instance of thePeriodicSpikes
parameter.MetricCharacteristics.Builder
avoiding the need to create one manually viaMetricCharacteristics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricCharacteristics(MetricCharacteristics)
.- Parameters:
metricCharacteristics
- a consumer that will call methods onMetricCharacteristics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
singleMetricAnomalyDetector
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
MetricMathAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector
.- Parameters:
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
MetricMathAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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
MetricMathAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
This is a convenience method that creates an instance of theSingleMetricAnomalyDetector
.SingleMetricAnomalyDetector.Builder
avoiding the need to create one manually viaSingleMetricAnomalyDetector.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosingleMetricAnomalyDetector(SingleMetricAnomalyDetector)
.- Parameters:
singleMetricAnomalyDetector
- a consumer that will call methods onSingleMetricAnomalyDetector.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
metricMathAnomalyDetector
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 ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector
.- Parameters:
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 ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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 ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
This is a convenience method that creates an instance of theMetricMathAnomalyDetector
.MetricMathAnomalyDetector.Builder
avoiding the need to create one manually viaMetricMathAnomalyDetector.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricMathAnomalyDetector(MetricMathAnomalyDetector)
.- Parameters:
metricMathAnomalyDetector
- a consumer that will call methods onMetricMathAnomalyDetector.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
PutAnomalyDetectorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutAnomalyDetectorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-