Interface RandomCutForestConfiguration.Builder

  • Method Details

    • query

      The Prometheus query used to retrieve the time-series data for anomaly detection.

      Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

      Supported PromQL aggregation operators: avg, count, group, max, min, quantile, stddev, stdvar, and sum.

      Parameters:
      query - The Prometheus query used to retrieve the time-series data for anomaly detection.

      Random Cut Forest queries must be wrapped by a supported PromQL aggregation operator. For more information, see Aggregation operators on the Prometheus docs website.

      Supported PromQL aggregation operators: avg, count, group, max, min, quantile, stddev, stdvar, and sum.

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

      The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.

      Parameters:
      shingleSize - The number of consecutive data points used to create a shingle for the Random Cut Forest algorithm. The default number is 8 consecutive data points.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSize

      The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.

      Parameters:
      sampleSize - The number of data points sampled from the input stream for the Random Cut Forest algorithm. The default number is 256 consecutive data points.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ignoreNearExpectedFromAbove

      RandomCutForestConfiguration.Builder ignoreNearExpectedFromAbove(IgnoreNearExpected ignoreNearExpectedFromAbove)

      Configuration for ignoring values that are near expected values from above during anomaly detection.

      Parameters:
      ignoreNearExpectedFromAbove - Configuration for ignoring values that are near expected values from above during anomaly detection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ignoreNearExpectedFromAbove

      default RandomCutForestConfiguration.Builder ignoreNearExpectedFromAbove(Consumer<IgnoreNearExpected.Builder> ignoreNearExpectedFromAbove)

      Configuration for ignoring values that are near expected values from above during anomaly detection.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ignoreNearExpectedFromAbove(IgnoreNearExpected).

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

      RandomCutForestConfiguration.Builder ignoreNearExpectedFromBelow(IgnoreNearExpected ignoreNearExpectedFromBelow)

      Configuration for ignoring values that are near expected values from below during anomaly detection.

      Parameters:
      ignoreNearExpectedFromBelow - Configuration for ignoring values that are near expected values from below during anomaly detection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ignoreNearExpectedFromBelow

      default RandomCutForestConfiguration.Builder ignoreNearExpectedFromBelow(Consumer<IgnoreNearExpected.Builder> ignoreNearExpectedFromBelow)

      Configuration for ignoring values that are near expected values from below during anomaly detection.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ignoreNearExpectedFromBelow(IgnoreNearExpected).

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