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 Details

    • create

      @Stability(Stable) public static CfnAnomalyDetector.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAnomalyDetector.Builder.
    • configuration

      @Stability(Stable) public CfnAnomalyDetector.Builder 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.

      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
    • 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
    • dimensions

      @Stability(Stable) public CfnAnomalyDetector.Builder dimensions(IResolvable 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
    • dimensions

      @Stability(Stable) public CfnAnomalyDetector.Builder dimensions(List<? extends Object> 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
    • 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
    • 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
    • metricName

      @Stability(Stable) public CfnAnomalyDetector.Builder metricName(String 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
    • namespace

      @Stability(Stable) public CfnAnomalyDetector.Builder namespace(String 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
    • 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
    • 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
    • stat

      @Stability(Stable) public CfnAnomalyDetector.Builder stat(String 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
    • build

      @Stability(Stable) public CfnAnomalyDetector build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAnomalyDetector>
      Returns:
      a newly built instance of CfnAnomalyDetector.