Interface WindowSummary.Builder

  • Method Details

    • testWindowStart

      WindowSummary.Builder testWindowStart(Instant testWindowStart)

      The timestamp that defines the start of the window.

      Parameters:
      testWindowStart - The timestamp that defines the start of the window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • testWindowEnd

      WindowSummary.Builder testWindowEnd(Instant testWindowEnd)

      The timestamp that defines the end of the window.

      Parameters:
      testWindowEnd - The timestamp that defines the end of the window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemCount

      WindowSummary.Builder itemCount(Integer itemCount)

      The number of data points within the window.

      Parameters:
      itemCount - The number of data points within the window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluationType

      WindowSummary.Builder evaluationType(String evaluationType)

      The type of evaluation.

      • SUMMARY - The average metrics across all windows.

      • COMPUTED - The metrics for the specified window.

      Parameters:
      evaluationType - The type of evaluation.

      • SUMMARY - The average metrics across all windows.

      • COMPUTED - The metrics for the specified window.

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

      WindowSummary.Builder evaluationType(EvaluationType evaluationType)

      The type of evaluation.

      • SUMMARY - The average metrics across all windows.

      • COMPUTED - The metrics for the specified window.

      Parameters:
      evaluationType - The type of evaluation.

      • SUMMARY - The average metrics across all windows.

      • COMPUTED - The metrics for the specified window.

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

      WindowSummary.Builder metrics(Metrics metrics)

      Provides metrics used to evaluate the performance of a predictor.

      Parameters:
      metrics - Provides metrics used to evaluate the performance of a predictor.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      default WindowSummary.Builder metrics(Consumer<Metrics.Builder> metrics)

      Provides metrics used to evaluate the performance of a predictor.

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

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

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