@Stability(value=Stable)
public static interface CfnAnomalyDetector.ConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The configuration can also include the time zone to use for the metric.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
ConfigurationProperty configurationProperty = ConfigurationProperty.builder()
.excludedTimeRanges(List.of(RangeProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build()))
.metricTimeZone("metricTimeZone")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAnomalyDetector.ConfigurationProperty.Builder
A builder for
CfnAnomalyDetector.ConfigurationProperty |
static class |
CfnAnomalyDetector.ConfigurationProperty.Jsii$Proxy
An implementation for
CfnAnomalyDetector.ConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAnomalyDetector.ConfigurationProperty.Builder |
builder() |
default Object |
getExcludedTimeRanges()
Specifies an array of time ranges to exclude from use when the anomaly detection model is trained and updated.
|
default String |
getMetricTimeZone()
The time zone to use for the metric.
|
@Stability(value=Stable) @Nullable default Object getExcludedTimeRanges()
Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates or updates the model.
@Stability(value=Stable) @Nullable default String getMetricTimeZone()
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 .
@Stability(value=Stable) static CfnAnomalyDetector.ConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.