Class CfnAnomalyDetector.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector>
- Enclosing class:
CfnAnomalyDetector
@Stability(Stable)
public static final class CfnAnomalyDetector.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector>
A fluent builder for
CfnAnomalyDetector
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
configuration
(IResolvable 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
(CfnAnomalyDetector.ConfigurationProperty configuration) Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.static CfnAnomalyDetector.Builder
dimensions
(List<? extends Object> dimensions) The dimensions of the metric associated with the anomaly detection band.dimensions
(IResolvable dimensions) The dimensions of the metric associated with the anomaly detection band.metricCharacteristics
(IResolvable 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
(CfnAnomalyDetector.MetricCharacteristicsProperty 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
(IResolvable metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.metricMathAnomalyDetector
(CfnAnomalyDetector.MetricMathAnomalyDetectorProperty metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.metricName
(String metricName) The name of the metric associated with the anomaly detection band.The namespace of the metric associated with the anomaly detection band.singleMetricAnomalyDetector
(IResolvable singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.singleMetricAnomalyDetector
(CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.The statistic of the metric associated with the anomaly detection band.
-
Method Details
-
create
@Stability(Stable) public static CfnAnomalyDetector.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAnomalyDetector.Builder
.
-
configuration
Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.The configuration can also include the time zone to use for the metric.
- Parameters:
configuration
- Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. This parameter is required.- Returns:
this
- See Also:
-
configuration
@Stability(Stable) public CfnAnomalyDetector.Builder configuration(CfnAnomalyDetector.ConfigurationProperty configuration) Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.The configuration can also include the time zone to use for the metric.
- Parameters:
configuration
- Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. This parameter is required.- Returns:
this
- See Also:
-
dimensions
The dimensions of the metric associated with the anomaly detection band.- Parameters:
dimensions
- The dimensions of the metric associated with the anomaly detection band. This parameter is required.- Returns:
this
- See Also:
-
dimensions
The dimensions of the metric associated with the anomaly detection band.- Parameters:
dimensions
- The dimensions of the metric associated with the anomaly detection band. This parameter is required.- Returns:
this
- See Also:
-
metricCharacteristics
@Stability(Stable) public CfnAnomalyDetector.Builder metricCharacteristics(IResolvable 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. This parameter is required.- Returns:
this
- See Also:
-
metricCharacteristics
@Stability(Stable) public CfnAnomalyDetector.Builder metricCharacteristics(CfnAnomalyDetector.MetricCharacteristicsProperty 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. This parameter is required.- Returns:
this
- See Also:
-
metricMathAnomalyDetector
@Stability(Stable) public CfnAnomalyDetector.Builder metricMathAnomalyDetector(IResolvable metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.- Parameters:
metricMathAnomalyDetector
- The CloudWatch metric math expression for this anomaly detector. This parameter is required.- Returns:
this
- See Also:
-
metricMathAnomalyDetector
@Stability(Stable) public CfnAnomalyDetector.Builder metricMathAnomalyDetector(CfnAnomalyDetector.MetricMathAnomalyDetectorProperty metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.- Parameters:
metricMathAnomalyDetector
- The CloudWatch metric math expression for this anomaly detector. This parameter is required.- Returns:
this
- See Also:
-
metricName
The name of the metric associated with the anomaly detection band.- Parameters:
metricName
- The name of the metric associated with the anomaly detection band. This parameter is required.- Returns:
this
- See Also:
-
namespace
The namespace of the metric associated with the anomaly detection band.- Parameters:
namespace
- The namespace of the metric associated with the anomaly detection band. This parameter is required.- Returns:
this
- See Also:
-
singleMetricAnomalyDetector
@Stability(Stable) public CfnAnomalyDetector.Builder singleMetricAnomalyDetector(IResolvable singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.- Parameters:
singleMetricAnomalyDetector
- The CloudWatch metric and statistic for this anomaly detector. This parameter is required.- Returns:
this
- See Also:
-
singleMetricAnomalyDetector
@Stability(Stable) public CfnAnomalyDetector.Builder singleMetricAnomalyDetector(CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.- Parameters:
singleMetricAnomalyDetector
- The CloudWatch metric and statistic for this anomaly detector. This parameter is required.- Returns:
this
- See Also:
-
stat
The statistic of the metric associated with the anomaly detection band.- Parameters:
stat
- The statistic of the metric associated with the anomaly detection band. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector>
- Returns:
- a newly built instance of
CfnAnomalyDetector
.
-