Interface ExperimentRule.Builder

  • Method Details

    • source

      The origin of the rule. Informational only; it does not change how the rule is applied.

      Parameters:
      source - The origin of the rule. Informational only; it does not change how the rule is applied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

      The origin of the rule. Informational only; it does not change how the rule is applied.

      Parameters:
      source - The origin of the rule. Informational only; it does not change how the rule is applied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      The name of the rule, from 1 to 256 characters.

      Parameters:
      name - The name of the rule, from 1 to 256 characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • caseCriteria

      ExperimentRule.Builder caseCriteria(Collection<CaseCriterion> caseCriteria)

      The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.

      Parameters:
      caseCriteria - The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • caseCriteria

      ExperimentRule.Builder caseCriteria(CaseCriterion... caseCriteria)

      The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.

      Parameters:
      caseCriteria - The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • caseCriteria

      ExperimentRule.Builder caseCriteria(Consumer<CaseCriterion.Builder>... caseCriteria)

      The conditions each case must meet to pass, up to 20. May be empty when the rule gates only on run-level metrics.

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

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

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

      The run-level checks the run must meet to pass, from 1 to 20.

      Parameters:
      gates - The run-level checks the run must meet to pass, from 1 to 20.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • gates

      The run-level checks the run must meet to pass, from 1 to 20.

      Parameters:
      gates - The run-level checks the run must meet to pass, from 1 to 20.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • gates

      The run-level checks the run must meet to pass, from 1 to 20.

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

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

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

      ExperimentRule.Builder contentHash(String contentHash)

      A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>. Output only; ignored on input. Member order and explicit default values do not affect the hash; list order does.

      Parameters:
      contentHash - A SHA-256 hash of the rule's caseCriteria and gates, in the form sha256:<64 hex digits>. Output only; ignored on input. Member order and explicit default values do not affect the hash; list order does.
      Returns:
      Returns a reference to this object so that method calls can be chained together.