Interface ExperimentRunSummary.Builder

  • Method Details

    • runId

      The ID of the run.

      Parameters:
      runId - The ID of the run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      Whether the run is reported by the caller's code or hosted by the service.

      Parameters:
      source - Whether the run is reported by the caller's code or hosted by the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

      Whether the run is reported by the caller's code or hosted by the service.

      Parameters:
      source - Whether the run is reported by the caller's code or hosted by the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the run.

      Parameters:
      status - The status of the run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the run.

      Parameters:
      status - The status of the run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      ExperimentRunSummary.Builder statusReason(String statusReason)

      Why the run did not finish. Present when status is DID_NOT_FINISH.

      Parameters:
      statusReason - Why the run did not finish. Present when status is DID_NOT_FINISH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      Why the run did not finish. Present when status is DID_NOT_FINISH.

      Parameters:
      statusReason - Why the run did not finish. Present when status is DID_NOT_FINISH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • producerKind

      ExperimentRunSummary.Builder producerKind(String producerKind)

      The kind of producer that reports the run. Reported runs only.

      Parameters:
      producerKind - The kind of producer that reports the run. Reported runs only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • producerKind

      ExperimentRunSummary.Builder producerKind(ProducerKind producerKind)

      The kind of producer that reports the run. Reported runs only.

      Parameters:
      producerKind - The kind of producer that reports the run. Reported runs only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • targetVersion

      ExperimentRunSummary.Builder targetVersion(String targetVersion)

      The version of the run's target.

      Parameters:
      targetVersion - The version of the run's target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetSource

      ExperimentRunSummary.Builder datasetSource(String datasetSource)

      The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.

      Parameters:
      datasetSource - The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • datasetSource

      ExperimentRunSummary.Builder datasetSource(DatasetSourceType datasetSource)

      The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.

      Parameters:
      datasetSource - The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • datasetId

      ExperimentRunSummary.Builder datasetId(String datasetId)

      The ID of the run's dataset.

      Parameters:
      datasetId - The ID of the run's dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetName

      ExperimentRunSummary.Builder datasetName(String datasetName)

      The name of the run's dataset.

      Parameters:
      datasetName - The name of the run's dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • datasetVersion

      ExperimentRunSummary.Builder datasetVersion(String datasetVersion)

      The version of the run's dataset.

      Parameters:
      datasetVersion - The version of the run's dataset.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleName

      The name of the run's rule.

      Parameters:
      ruleName - The name of the run's rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleContentHash

      ExperimentRunSummary.Builder ruleContentHash(String ruleContentHash)

      The contentHash of the run's rule. Runs with equal hashes have the same case criteria and gates.

      Parameters:
      ruleContentHash - The contentHash of the run's rule. Runs with equal hashes have the same case criteria and gates.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Key-value facts about what the run tested.

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

      ExperimentRunSummary.Builder description(String description)

      The description of the run.

      Parameters:
      description - The description of the run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traceStats

      The trace stats of the run. Absent on an experiment's latestRun.

      Parameters:
      traceStats - The trace stats of the run. Absent on an experiment's latestRun.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traceStats

      The trace stats of the run. Absent on an experiment's latestRun.

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

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

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

      The verdict of the run. Present only for runs with a rule, once the run has ended.

      Parameters:
      verdict - The verdict of the run. Present only for runs with a rule, once the run has ended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • verdict

      The verdict of the run. Present only for runs with a rule, once the run has ended.

      Parameters:
      verdict - The verdict of the run. Present only for runs with a rule, once the run has ended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • verdictReasonCode

      ExperimentRunSummary.Builder verdictReasonCode(String verdictReasonCode)

      The reason for the run's verdict.

      Parameters:
      verdictReasonCode - The reason for the run's verdict.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • verdictReasonCode

      ExperimentRunSummary.Builder verdictReasonCode(VerdictReasonCode verdictReasonCode)

      The reason for the run's verdict.

      Parameters:
      verdictReasonCode - The reason for the run's verdict.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • verdictReason

      ExperimentRunSummary.Builder verdictReason(String verdictReason)

      A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".

      Parameters:
      verdictReason - A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • passRate

      The share of the run's cases that passed, from 0 to 1. Runs with a rule only.

      Parameters:
      passRate - The share of the run's cases that passed, from 0 to 1. Runs with a rule only.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • controlPassRate

      ExperimentRunSummary.Builder controlPassRate(Double controlPassRate)

      The control's pass rate under this run's caseCriteria, set when the run ends.

      Parameters:
      controlPassRate - The control's pass rate under this run's caseCriteria, set when the run ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • role

      The role of the run: TARGET, or CONTROL for a live control run.

      Parameters:
      role - The role of the run: TARGET, or CONTROL for a live control run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • role

      The role of the run: TARGET, or CONTROL for a live control run.

      Parameters:
      role - The role of the run: TARGET, or CONTROL for a live control run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • controlRunId

      ExperimentRunSummary.Builder controlRunId(String controlRunId)

      The ID of the run this run is compared with.

      Parameters:
      controlRunId - The ID of the run this run is compared with.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • casesTotal

      ExperimentRunSummary.Builder casesTotal(Integer casesTotal)

      The total number of cases in the run.

      Parameters:
      casesTotal - The total number of cases in the run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • passed

      The number of cases that passed.

      Parameters:
      passed - The number of cases that passed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      ExperimentRunSummary.Builder createdAt(Instant createdAt)

      The time when the run was created.

      Parameters:
      createdAt - The time when the run was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedAt

      ExperimentRunSummary.Builder completedAt(Instant completedAt)

      The time when the run ended.

      Parameters:
      completedAt - The time when the run ended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.