Interface AnomalyDetectorConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<AnomalyDetectorConfiguration.Builder,AnomalyDetectorConfiguration>
,SdkBuilder<AnomalyDetectorConfiguration.Builder,AnomalyDetectorConfiguration>
,SdkPojo
- Enclosing class:
- AnomalyDetectorConfiguration
public static interface AnomalyDetectorConfiguration.Builder extends SdkPojo, CopyableBuilder<AnomalyDetectorConfiguration.Builder,AnomalyDetectorConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnomalyDetectorConfiguration.Builder
excludedTimeRanges(Collection<Range> excludedTimeRanges)
An array of time ranges to exclude from use when the anomaly detection model is trained.AnomalyDetectorConfiguration.Builder
excludedTimeRanges(Consumer<Range.Builder>... excludedTimeRanges)
An array of time ranges to exclude from use when the anomaly detection model is trained.AnomalyDetectorConfiguration.Builder
excludedTimeRanges(Range... excludedTimeRanges)
An array of time ranges to exclude from use when the anomaly detection model is trained.AnomalyDetectorConfiguration.Builder
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 Detail
-
excludedTimeRanges
AnomalyDetectorConfiguration.Builder excludedTimeRanges(Collection<Range> 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(Range... 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 to#excludedTimeRanges(List
.) - 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:
#excludedTimeRanges(java.util.Collection
)
-
metricTimezone
AnomalyDetectorConfiguration.Builder metricTimezone(String 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.
-
-