Interface SingleMetricAnomalyDetector.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>, SdkBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>, SdkPojo
Enclosing class:
SingleMetricAnomalyDetector

public static interface SingleMetricAnomalyDetector.Builder extends SdkPojo, CopyableBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>
  • Method Details

    • accountId

      If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.

      Parameters:
      accountId - If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespace

      The namespace of the metric to create the anomaly detection model for.

      Parameters:
      namespace - The namespace of the metric to create the anomaly detection model for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricName

      The name of the metric to create the anomaly detection model for.

      Parameters:
      metricName - The name of the metric to create the anomaly detection model for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      The metric dimensions to create the anomaly detection model for.

      Parameters:
      dimensions - The metric dimensions to create the anomaly detection model for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      The metric dimensions to create the anomaly detection model for.

      Parameters:
      dimensions - The metric dimensions to create the anomaly detection model for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      The metric dimensions to create the anomaly detection model for.

      This is a convenience method that creates an instance of the Dimension.Builder avoiding the need to create one manually via Dimension.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dimensions(List<Dimension>).

      Parameters:
      dimensions - a consumer that will call methods on Dimension.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • stat

      The statistic to use for the metric and anomaly detection model.

      Parameters:
      stat - The statistic to use for the metric and anomaly detection model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.