Interface AnomalyDetectorConfiguration.Builder

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

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

    • excludedTimeRanges

      AnomalyDetectorConfiguration.Builder excludedTimeRanges(Collection<Range> excludedTimeRanges)

      An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.

      Parameters:
      excludedTimeRanges - An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedTimeRanges

      AnomalyDetectorConfiguration.Builder excludedTimeRanges(Range... excludedTimeRanges)

      An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.

      Parameters:
      excludedTimeRanges - An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedTimeRanges

      AnomalyDetectorConfiguration.Builder excludedTimeRanges(Consumer<Range.Builder>... excludedTimeRanges)

      An array of time ranges to exclude from use when the anomaly detection model is trained. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates the model.

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

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

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

      AnomalyDetectorConfiguration.Builder metricTimezone(String metricTimezone)

      The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

      To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.

      Parameters:
      metricTimezone - The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.

      To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see tz database.

      Returns:
      Returns a reference to this object so that method calls can be chained together.