Interface RunGate.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RunGate.Builder,RunGate>, SdkBuilder<RunGate.Builder,RunGate>, SdkPojo
Enclosing class:
RunGate

@Mutable @NotThreadSafe public static interface RunGate.Builder extends SdkPojo, CopyableBuilder<RunGate.Builder,RunGate>
  • Method Details

    • metric

      RunGate.Builder metric(RunMetric metric)

      The metric the gate measures over the run's cases.

      Parameters:
      metric - The metric the gate measures over the run's cases.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metric

      default RunGate.Builder metric(Consumer<RunMetric.Builder> metric)

      The metric the gate measures over the run's cases.

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

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

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

      RunGate.Builder bound(GateBound bound)

      The bound the metric must meet for the gate to hold. Required for every metric except regressedScores, which takes no bound (RULE_BOUND_INVALID if it has one, FIELD_REQUIRED if another metric has none).

      Parameters:
      bound - The bound the metric must meet for the gate to hold. Required for every metric except regressedScores, which takes no bound (RULE_BOUND_INVALID if it has one, FIELD_REQUIRED if another metric has none).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bound

      default RunGate.Builder bound(Consumer<GateBound.Builder> bound)

      The bound the metric must meet for the gate to hold. Required for every metric except regressedScores, which takes no bound (RULE_BOUND_INVALID if it has one, FIELD_REQUIRED if another metric has none).

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

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

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