Interface CfnAnomalyDetectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:40.172Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnAnomalyDetectorProps
static final class
An implementation forCfnAnomalyDetectorProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.default Object
The dimensions of the metric associated with the anomaly detection band.default Object
Use this object to include parameters to provide information about your metric to CloudWatch to help it build more accurate anomaly detection models.default Object
The CloudWatch metric math expression for this anomaly detector.default String
The name of the metric associated with the anomaly detection band.default String
The namespace of the metric associated with the anomaly detection band.default Object
The CloudWatch metric and statistic for this anomaly detector.default String
getStat()
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.
- See Also:
-
getDimensions
The dimensions of the metric associated with the anomaly detection band.- 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
PeriodicSpikes
parameter.- See Also:
-
getMetricMathAnomalyDetector
The CloudWatch metric math expression for this anomaly detector.- 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.- See Also:
-
getStat
The statistic of the metric associated with the anomaly detection band.- See Also:
-
builder
- Returns:
- a
CfnAnomalyDetectorProps.Builder
ofCfnAnomalyDetectorProps
-