Interface SloObjective.Builder

  • Method Details

    • target

      SloObjective.Builder target(Double target)

      The target attainment as a percentage, greater than 0 and less than 100, with at most three decimal places. For example, 99.9.

      Parameters:
      target - The target attainment as a percentage, greater than 0 and less than 100, with at most three decimal places. For example, 99.9.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • warningBudgetConsumedRatio

      SloObjective.Builder warningBudgetConsumedRatio(Double warningBudgetConsumedRatio)

      The share of the error budget consumed at which the SLO enters the WARNING state, greater than 0 and less than 1. There is no default: when absent, the SLO is never WARNING.

      Parameters:
      warningBudgetConsumedRatio - The share of the error budget consumed at which the SLO enters the WARNING state, greater than 0 and less than 1. There is no default: when absent, the SLO is never WARNING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeWindow

      SloObjective.Builder timeWindow(SloTimeWindow timeWindow)

      The window the target is measured over. Together with the target it defines the error budget.

      Parameters:
      timeWindow - The window the target is measured over. Together with the target it defines the error budget.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timeWindow

      default SloObjective.Builder timeWindow(Consumer<SloTimeWindow.Builder> timeWindow)

      The window the target is measured over. Together with the target it defines the error budget.

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

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

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