Interface ExclusionWindow.Builder

  • Method Details

    • window

      The SLO time window exclusion .

      Parameters:
      window - The SLO time window exclusion .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • window

      The SLO time window exclusion .

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

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

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

      ExclusionWindow.Builder startTime(Instant startTime)

      The start of the SLO time window exclusion. Defaults to current time if not specified.

      Parameters:
      startTime - The start of the SLO time window exclusion. Defaults to current time if not specified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurrenceRule

      ExclusionWindow.Builder recurrenceRule(RecurrenceRule recurrenceRule)

      The recurrence rule for the SLO time window exclusion. Supports both cron and rate expressions.

      Parameters:
      recurrenceRule - The recurrence rule for the SLO time window exclusion. Supports both cron and rate expressions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurrenceRule

      default ExclusionWindow.Builder recurrenceRule(Consumer<RecurrenceRule.Builder> recurrenceRule)

      The recurrence rule for the SLO time window exclusion. Supports both cron and rate expressions.

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

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

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

      A description explaining why this time period should be excluded from SLO calculations.

      Parameters:
      reason - A description explaining why this time period should be excluded from SLO calculations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.