Class CfnAnomalyDetector.MetricCharacteristicsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricCharacteristicsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.MetricCharacteristicsProperty>
- Enclosing interface:
CfnAnomalyDetector.MetricCharacteristicsProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.MetricCharacteristicsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.MetricCharacteristicsProperty>
A builder for
CfnAnomalyDetector.MetricCharacteristicsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.periodicSpikes
(Boolean periodicSpikes) Sets the value ofCfnAnomalyDetector.MetricCharacteristicsProperty.getPeriodicSpikes()
periodicSpikes
(IResolvable periodicSpikes) Sets the value ofCfnAnomalyDetector.MetricCharacteristicsProperty.getPeriodicSpikes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
periodicSpikes
@Stability(Stable) public CfnAnomalyDetector.MetricCharacteristicsProperty.Builder periodicSpikes(Boolean periodicSpikes) Sets the value ofCfnAnomalyDetector.MetricCharacteristicsProperty.getPeriodicSpikes()
- Parameters:
periodicSpikes
- Set this parameter to true if values for this metric consistently include spikes that should not be considered to be anomalies. With this set to true, CloudWatch will expect to see spikes that occurred consistently during the model training period, and won't flag future similar spikes as anomalies.- Returns:
this
-
periodicSpikes
@Stability(Stable) public CfnAnomalyDetector.MetricCharacteristicsProperty.Builder periodicSpikes(IResolvable periodicSpikes) Sets the value ofCfnAnomalyDetector.MetricCharacteristicsProperty.getPeriodicSpikes()
- Parameters:
periodicSpikes
- Set this parameter to true if values for this metric consistently include spikes that should not be considered to be anomalies. With this set to true, CloudWatch will expect to see spikes that occurred consistently during the model training period, and won't flag future similar spikes as anomalies.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.MetricCharacteristicsProperty>
- Returns:
- a new instance of
CfnAnomalyDetector.MetricCharacteristicsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-