Interface ReportedRunInfo.Builder

  • Method Details

    • producer

      The tool or system that runs the cases and reports their results.

      Parameters:
      producer - The tool or system that runs the cases and reports their results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • producer

      The tool or system that runs the cases and reports their results.

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

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

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

      The rule to check the run against. Optional; with a rule, the run gets a verdict when it completes.

      Parameters:
      rule - The rule to check the run against. Optional; with a rule, the run gets a verdict when it completes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rule

      The rule to check the run against. Optional; with a rule, the run gets a verdict when it completes.

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

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

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

      An earlier run to compare this run with. Only runId or latestPassed is supported (CONTROL_TARGET_UNSUPPORTED for target). Required by rules that use vsControl bounds or paired metrics.

      Parameters:
      control - An earlier run to compare this run with. Only runId or latestPassed is supported (CONTROL_TARGET_UNSUPPORTED for target). Required by rules that use vsControl bounds or paired metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • control

      An earlier run to compare this run with. Only runId or latestPassed is supported (CONTROL_TARGET_UNSUPPORTED for target). Required by rules that use vsControl bounds or paired metrics.

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

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

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

      The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).

      Parameters:
      evaluators - The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluators

      ReportedRunInfo.Builder evaluators(ExperimentEvaluator... evaluators)

      The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).

      Parameters:
      evaluators - The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluators

      The evaluators the run is scored with, from 1 to 20. Required on the creating call. The rule and every reported case can name only these evaluators. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).

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

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

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

      The version of the experiment's target that the run tested. Must be the same kind as the experiment's target.

      Parameters:
      target - The version of the experiment's target that the run tested. Must be the same kind as the experiment's target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The version of the experiment's target that the run tested. Must be the same kind as the experiment's target.

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

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

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

      The dataset the run tested. Required on the creating call, with its identity and caseCount. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).

      Parameters:
      dataset - The dataset the run tested. Required on the creating call, with its identity and caseCount. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataset

      The dataset the run tested. Required on the creating call, with its identity and caseCount. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).

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

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

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

      Key-value facts about what the run tested, beyond the target and dataset versions.

      Parameters:
      metadata - Key-value facts about what the run tested, beyond the target and dataset versions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ReportedRunInfo.Builder description(String description)

      A description of what the run is for, up to 1024 characters with no control characters. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).

      Parameters:
      description - A description of what the run is for, up to 1024 characters with no control characters. Later calls must repeat it exactly or omit the run block (RUN_DEFINITION_MISMATCH).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startedAt

      ReportedRunInfo.Builder startedAt(Instant startedAt)

      The time when the producer started the run, if it began before the first PutExperimentRunResults call.

      Parameters:
      startedAt - The time when the producer started the run, if it began before the first PutExperimentRunResults call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.