Interface AnomalyDetectorConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AnomalyDetectorConfiguration.Builder,
,AnomalyDetectorConfiguration> SdkBuilder<AnomalyDetectorConfiguration.Builder,
,AnomalyDetectorConfiguration> SdkPojo
- Enclosing class:
AnomalyDetectorConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionexcludedTimeRanges
(Collection<Range> excludedTimeRanges) An array of time ranges to exclude from use when the anomaly detection model is trained.excludedTimeRanges
(Consumer<Range.Builder>... excludedTimeRanges) An array of time ranges to exclude from use when the anomaly detection model is trained.excludedTimeRanges
(Range... excludedTimeRanges) An array of time ranges to exclude from use when the anomaly detection model is trained.metricTimezone
(String metricTimezone) The time zone to use for the metric.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, sdkFields
-
Method Details
-
excludedTimeRanges
An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
- Parameters:
excludedTimeRanges
- An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedTimeRanges
An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
- Parameters:
excludedTimeRanges
- An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedTimeRanges
AnomalyDetectorConfiguration.Builder excludedTimeRanges(Consumer<Range.Builder>... excludedTimeRanges) An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
This is a convenience method that creates an instance of theRange.Builder
avoiding the need to create one manually viaRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexcludedTimeRanges(List<Range>)
.- Parameters:
excludedTimeRanges
- a consumer that will call methods onRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricTimezone
The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.
To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.
- Parameters:
metricTimezone
- The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-