Interface CfnAnomalyDetectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.436Z")
@Stability(Stable)
public interface CfnAnomalyDetectorProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAnomalyDetector.
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.*;
CfnAnomalyDetectorProps cfnAnomalyDetectorProps = CfnAnomalyDetectorProps.builder()
.configuration(ConfigurationProperty.builder()
.excludedTimeRanges(List.of(RangeProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build()))
.metricTimeZone("metricTimeZone")
.build())
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricCharacteristics(MetricCharacteristicsProperty.builder()
.periodicSpikes(false)
.build())
.metricMathAnomalyDetector(MetricMathAnomalyDetectorProperty.builder()
.metricDataQueries(List.of(MetricDataQueryProperty.builder()
.id("id")
// the properties below are optional
.accountId("accountId")
.expression("expression")
.label("label")
.metricStat(MetricStatProperty.builder()
.metric(MetricProperty.builder()
.metricName("metricName")
.namespace("namespace")
// the properties below are optional
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build())
.period(123)
.returnData(false)
.build()))
.build())
.metricName("metricName")
.namespace("namespace")
.singleMetricAnomalyDetector(SingleMetricAnomalyDetectorProperty.builder()
.accountId("accountId")
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.stat("stat")
.build())
.stat("stat")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAnomalyDetectorPropsstatic final classAn implementation forCfnAnomalyDetectorProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSpecifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.default ObjectThe dimensions of the metric associated with the anomaly detection band.default ObjectUse this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models.default ObjectThe CloudWatch metric math expression for this anomaly detector.default StringThe name of the metric associated with the anomaly detection band.default StringThe namespace of the metric associated with the anomaly detection band.default ObjectThe CloudWatch metric and statistic for this anomaly detector.default StringgetStat()The statistic of the metric associated with the anomaly detection band.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfiguration
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.
Returns union: either
IResolvableorCfnAnomalyDetector.ConfigurationProperty- See Also:
-
getDimensions
The dimensions of the metric associated with the anomaly detection band.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAnomalyDetector.DimensionProperty>- See Also:
-
getMetricCharacteristics
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
PeriodicSpikesparameter.Returns union: either
IResolvableorCfnAnomalyDetector.MetricCharacteristicsProperty- See Also:
-
getMetricMathAnomalyDetector
The CloudWatch metric math expression for this anomaly detector.Returns union: either
IResolvableorCfnAnomalyDetector.MetricMathAnomalyDetectorProperty- See Also:
-
getMetricName
The name of the metric associated with the anomaly detection band.- See Also:
-
getNamespace
The namespace of the metric associated with the anomaly detection band.- See Also:
-
getSingleMetricAnomalyDetector
The CloudWatch metric and statistic for this anomaly detector.Returns union: either
IResolvableorCfnAnomalyDetector.SingleMetricAnomalyDetectorProperty- See Also:
-
getStat
The statistic of the metric associated with the anomaly detection band.- See Also:
-
builder
- Returns:
- a
CfnAnomalyDetectorProps.BuilderofCfnAnomalyDetectorProps
-