Interface CfnAnomalyDetectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAnomalyDetectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.816Z")
@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())) .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() .dimensions(List.of(DimensionProperty.builder() .name("name") .value("value") .build())) .metricName("metricName") .namespace("namespace") .stat("stat") .build()) .stat("stat") .build();
-
Nested Class Summary
Nested ClassesModifier 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
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.
-
getDimensions
The dimensions of the metric associated with the anomaly detection band. -
getMetricMathAnomalyDetector
The CloudWatch metric math expression for this anomaly detector. -
getMetricName
The name of the metric associated with the anomaly detection band. -
getNamespace
The namespace of the metric associated with the anomaly detection band. -
getSingleMetricAnomalyDetector
The CloudWatch metric and statistic for this anomaly detector. -
getStat
The statistic of the metric associated with the anomaly detection band. -
builder
- Returns:
- a
CfnAnomalyDetectorProps.Builder
ofCfnAnomalyDetectorProps
-