Interface VerdictCheck.Builder

  • Method Details

    • metric

      The gate's metric.

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

      The gate's metric.

      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

      The gate's bound. Absent for regressedScores, which takes none.

      Parameters:
      bound - The gate's bound. Absent for regressedScores, which takes none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bound

      The gate's bound. Absent for regressedScores, which takes 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:
    • observed

      VerdictCheck.Builder observed(Double observed)

      The metric's value for this run.

      Parameters:
      observed - The metric's value for this run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlObserved

      VerdictCheck.Builder controlObserved(Double controlObserved)

      The control's value of the metric. Present for vsControl checks.

      Parameters:
      controlObserved - The control's value of the metric. Present for vsControl checks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • delta

      The change from the control, in the bound's mode, signed so that positive is better. Absent when the change is not finite, such as in RATIO mode against a control value of 0.

      Parameters:
      delta - The change from the control, in the bound's mode, signed so that positive is better. Absent when the change is not finite, such as in RATIO mode against a control value of 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • passed

      VerdictCheck.Builder passed(Boolean passed)

      Whether the gate held.

      Parameters:
      passed - Whether the gate held.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • decisive

      VerdictCheck.Builder decisive(Boolean decisive)

      Whether this check decided a FAILED verdict.

      Parameters:
      decisive - Whether this check decided a FAILED verdict.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • observedByEvaluator

      VerdictCheck.Builder observedByEvaluator(Collection<EvaluatorCount> observedByEvaluator)

      The regressed scores for each evaluator: one entry for each evaluator both runs have on which the target scored at least one case worse than the control. Present only on a regressedScores check, where it's empty when nothing regressed.

      Parameters:
      observedByEvaluator - The regressed scores for each evaluator: one entry for each evaluator both runs have on which the target scored at least one case worse than the control. Present only on a regressedScores check, where it's empty when nothing regressed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • observedByEvaluator

      VerdictCheck.Builder observedByEvaluator(EvaluatorCount... observedByEvaluator)

      The regressed scores for each evaluator: one entry for each evaluator both runs have on which the target scored at least one case worse than the control. Present only on a regressedScores check, where it's empty when nothing regressed.

      Parameters:
      observedByEvaluator - The regressed scores for each evaluator: one entry for each evaluator both runs have on which the target scored at least one case worse than the control. Present only on a regressedScores check, where it's empty when nothing regressed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • observedByEvaluator

      VerdictCheck.Builder observedByEvaluator(Consumer<EvaluatorCount.Builder>... observedByEvaluator)

      The regressed scores for each evaluator: one entry for each evaluator both runs have on which the target scored at least one case worse than the control. Present only on a regressedScores check, where it's empty when nothing regressed.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to observedByEvaluator(List<EvaluatorCount>).

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