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();
 
  • Method Details

    • getConfiguration

      @Stability(Stable) @Nullable default Object 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

      @Stability(Stable) @Nullable default Object getDimensions()
      The dimensions of the metric associated with the anomaly detection band.
    • getMetricMathAnomalyDetector

      @Stability(Stable) @Nullable default Object getMetricMathAnomalyDetector()
      The CloudWatch metric math expression for this anomaly detector.
    • getMetricName

      @Stability(Stable) @Nullable default String getMetricName()
      The name of the metric associated with the anomaly detection band.
    • getNamespace

      @Stability(Stable) @Nullable default String getNamespace()
      The namespace of the metric associated with the anomaly detection band.
    • getSingleMetricAnomalyDetector

      @Stability(Stable) @Nullable default Object getSingleMetricAnomalyDetector()
      The CloudWatch metric and statistic for this anomaly detector.
    • getStat

      @Stability(Stable) @Nullable default String getStat()
      The statistic of the metric associated with the anomaly detection band.
    • builder

      @Stability(Stable) static CfnAnomalyDetectorProps.Builder builder()
      Returns:
      a CfnAnomalyDetectorProps.Builder of CfnAnomalyDetectorProps