Interface AnomalyDetectorConfiguration.Builder

  • 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.
    • adaptationSpeed

      AnomalyDetectorConfiguration.Builder adaptationSpeed(String adaptationSpeed)

      The speed at which the anomaly detection model adapts to sustained changes in the metric's baseline. Faster adaptation lets the model track shifting workloads sooner, but increases the chance that the model treats a real, lasting change as normal.

      Valid values:

      • FAST - The model adapts quickly to sustained changes in the baseline.

      • NORMAL - The model adapts at a moderate pace. This is the default value.

      • SLOW - The model adapts slowly, reducing the risk of treating a real change as normal.

      Parameters:
      adaptationSpeed - The speed at which the anomaly detection model adapts to sustained changes in the metric's baseline. Faster adaptation lets the model track shifting workloads sooner, but increases the chance that the model treats a real, lasting change as normal.

      Valid values:

      • FAST - The model adapts quickly to sustained changes in the baseline.

      • NORMAL - The model adapts at a moderate pace. This is the default value.

      • SLOW - The model adapts slowly, reducing the risk of treating a real change as normal.

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

      The speed at which the anomaly detection model adapts to sustained changes in the metric's baseline. Faster adaptation lets the model track shifting workloads sooner, but increases the chance that the model treats a real, lasting change as normal.

      Valid values:

      • FAST - The model adapts quickly to sustained changes in the baseline.

      • NORMAL - The model adapts at a moderate pace. This is the default value.

      • SLOW - The model adapts slowly, reducing the risk of treating a real change as normal.

      Parameters:
      adaptationSpeed - The speed at which the anomaly detection model adapts to sustained changes in the metric's baseline. Faster adaptation lets the model track shifting workloads sooner, but increases the chance that the model treats a real, lasting change as normal.

      Valid values:

      • FAST - The model adapts quickly to sustained changes in the baseline.

      • NORMAL - The model adapts at a moderate pace. This is the default value.

      • SLOW - The model adapts slowly, reducing the risk of treating a real change as normal.

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

      AnomalyDetectorConfiguration.Builder outlierFilteringStrength(String outlierFilteringStrength)

      The aggressiveness with which CloudWatch filters outliers from the metric data that the anomaly detection model uses. Stronger filtering excludes more extreme values, which can produce a tighter band of expected values but may also suppress legitimate spikes.

      Valid values:

      • MINIMAL - Excludes only the most extreme outliers.

      • MODERATE - Excludes a moderate range of outliers. This is the default value.

      • STRICT - Excludes a wider range of outliers, which can suppress legitimate spikes.

      Parameters:
      outlierFilteringStrength - The aggressiveness with which CloudWatch filters outliers from the metric data that the anomaly detection model uses. Stronger filtering excludes more extreme values, which can produce a tighter band of expected values but may also suppress legitimate spikes.

      Valid values:

      • MINIMAL - Excludes only the most extreme outliers.

      • MODERATE - Excludes a moderate range of outliers. This is the default value.

      • STRICT - Excludes a wider range of outliers, which can suppress legitimate spikes.

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

      AnomalyDetectorConfiguration.Builder outlierFilteringStrength(AnomalyDetectorOutlierFilteringStrength outlierFilteringStrength)

      The aggressiveness with which CloudWatch filters outliers from the metric data that the anomaly detection model uses. Stronger filtering excludes more extreme values, which can produce a tighter band of expected values but may also suppress legitimate spikes.

      Valid values:

      • MINIMAL - Excludes only the most extreme outliers.

      • MODERATE - Excludes a moderate range of outliers. This is the default value.

      • STRICT - Excludes a wider range of outliers, which can suppress legitimate spikes.

      Parameters:
      outlierFilteringStrength - The aggressiveness with which CloudWatch filters outliers from the metric data that the anomaly detection model uses. Stronger filtering excludes more extreme values, which can produce a tighter band of expected values but may also suppress legitimate spikes.

      Valid values:

      • MINIMAL - Excludes only the most extreme outliers.

      • MODERATE - Excludes a moderate range of outliers. This is the default value.

      • STRICT - Excludes a wider range of outliers, which can suppress legitimate spikes.

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