Interface ExperimentRunDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ExperimentRunDetails.Builder,,ExperimentRunDetails> SdkBuilder<ExperimentRunDetails.Builder,,ExperimentRunDetails> SdkPojo
- Enclosing class:
ExperimentRunDetails
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExperimentRunDetails.BuilderbatchEvaluation(Consumer<BatchEvaluationProgress.Builder> batchEvaluation) The progress of the hosted run's batch evaluation.batchEvaluation(BatchEvaluationProgress batchEvaluation) The progress of the hosted run's batch evaluation.caseRecordsWritten(Integer caseRecordsWritten) The number of case records written, across every attempt and revision.checks(Collection<VerdictCheck> checks) The result of checking each of the rule's gates.checks(Consumer<VerdictCheck.Builder>... checks) The result of checking each of the rule's gates.checks(VerdictCheck... checks) The result of checking each of the rule's gates.completedAt(Instant completedAt) The time when the run ended.default ExperimentRunDetails.Buildercontrol(Consumer<ControlSource.Builder> control) What the run is compared against, as given.control(ControlSource control) What the run is compared against, as given.controlRunId(String controlRunId) The ID of the run this run is compared with, resolved when the run starts: either the live control run or the earlier run.The time when the run was created.default ExperimentRunDetails.Builderdataset(Consumer<ExperimentRunDataset.Builder> dataset) The dataset the run tested.dataset(ExperimentRunDataset dataset) The dataset the run tested.description(String description) The description of the run, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.evaluators(Collection<ExperimentEvaluator> evaluators) The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.evaluators(Consumer<ExperimentEvaluator.Builder>... evaluators) The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.evaluators(ExperimentEvaluator... evaluators) The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.experimentId(String experimentId) The ID of the experiment the run belongs to.Key-value facts about what the run tested, as given when the run was created.metrics(Collection<EvaluatorMetric> metrics) Statistics for each of the run's evaluators.metrics(Consumer<EvaluatorMetric.Builder>... metrics) Statistics for each of the run's evaluators.metrics(EvaluatorMetric... metrics) Statistics for each of the run's evaluators.default ExperimentRunDetails.Builderproducer(Consumer<ExperimentProducer.Builder> producer) The producer that reports the run.producer(ExperimentProducer producer) The producer that reports the run.producerPrincipal(String producerPrincipal) The IAM principal that started the run, without the session name.The role of the run: TARGET, or CONTROL for a live control run.The role of the run: TARGET, or CONTROL for a live control run.default ExperimentRunDetails.Builderrule(Consumer<ExperimentRule.Builder> rule) The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.rule(ExperimentRule rule) The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.The ID of the run.Whether the run is reported by the caller's code or hosted by the service.source(ExperimentRunSource source) Whether the run is reported by the caller's code or hosted by the service.The time when the run started.The status of the run.status(ExperimentRunStatus status) The status of the run.statusDetail(String statusDetail) Additional detail about the status: the StopExperimentRun detail, or for RUNNER_FAILED, the AgentCore error details as one string of up to 1,000 characters.statusReason(String statusReason) Why the run did not finish.statusReason(ExperimentRunStatusReason statusReason) Why the run did not finish.default ExperimentRunDetails.Buildersummary(Consumer<ExperimentCaseSummary.Builder> summary) Case counts and rates for the run.summary(ExperimentCaseSummary summary) Case counts and rates for the run.default ExperimentRunDetails.Buildertarget(Consumer<TargetConfig.Builder> target) The version of the experiment's target that the run tested, as given when the run was started or created.target(TargetConfig target) The version of the experiment's target that the run tested, as given when the run was started or created.targetRunId(String targetRunId) For a CONTROL run, the ID of the run it is the control for.default ExperimentRunDetails.BuildertraceStats(Consumer<RunTraceStats.Builder> traceStats) Statistics from the agent's spans for the run, read after the run ended.traceStats(RunTraceStats traceStats) Statistics from the agent's spans for the run, read after the run ended.The time when the run was last updated.The verdict of the run.The verdict of the run.verdictReason(String verdictReason) A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".verdictReasonCode(String verdictReasonCode) The reason for the run's verdict.verdictReasonCode(VerdictReasonCode verdictReasonCode) The reason for the run's verdict.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
experimentId
The ID of the experiment the run belongs to.
- Parameters:
experimentId- The ID of the experiment the run belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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:
-
statusDetail
Additional detail about the status: the StopExperimentRun detail, or for RUNNER_FAILED, the AgentCore error details as one string of up to 1,000 characters.
- Parameters:
statusDetail- Additional detail about the status: the StopExperimentRun detail, or for RUNNER_FAILED, the AgentCore error details as one string of up to 1,000 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
producer
The producer that reports the run. Reported runs only.
- Parameters:
producer- The producer that reports the run. Reported runs only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
producer
The producer that reports the run. Reported runs only.
This is a convenience method that creates an instance of theExperimentProducer.Builderavoiding the need to create one manually viaExperimentProducer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproducer(ExperimentProducer).- Parameters:
producer- a consumer that will call methods onExperimentProducer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
producerPrincipal
The IAM principal that started the run, without the session name.
- Parameters:
producerPrincipal- The IAM principal that started the run, without the session name.- 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, as given when the run was started or created.
- Parameters:
target- The version of the experiment's target that the run tested, as given when the run was started or created.- 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, as given when the run was started or created.
This is a convenience method that creates an instance of theTargetConfig.Builderavoiding the need to create one manually viaTargetConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(TargetConfig).- Parameters:
target- a consumer that will call methods onTargetConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
control
What the run is compared against, as given.
- Parameters:
control- What the run is compared against, as given.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
control
What the run is compared against, as given.
This is a convenience method that creates an instance of theControlSource.Builderavoiding the need to create one manually viaControlSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontrol(ControlSource).- Parameters:
control- a consumer that will call methods onControlSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
controlRunId
The ID of the run this run is compared with, resolved when the run starts: either the live control run or the earlier run.
- Parameters:
controlRunId- The ID of the run this run is compared with, resolved when the run starts: either the live control run or the earlier run.- 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:
-
targetRunId
For a CONTROL run, the ID of the run it is the control for.
- Parameters:
targetRunId- For a CONTROL run, the ID of the run it is the control for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataset
The dataset the run tested.
- Parameters:
dataset- The dataset the run tested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataset
The dataset the run tested.
This is a convenience method that creates an instance of theExperimentRunDataset.Builderavoiding the need to create one manually viaExperimentRunDataset.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataset(ExperimentRunDataset).- Parameters:
dataset- a consumer that will call methods onExperimentRunDataset.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, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.
- Parameters:
evaluators- The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.
- Parameters:
evaluators- The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluators
The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.
This is a convenience method that creates an instance of theExperimentEvaluator.Builderavoiding the need to create one manually viaExperimentEvaluator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluators(List<ExperimentEvaluator>).- Parameters:
evaluators- a consumer that will call methods onExperimentEvaluator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rule
The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when the run has no rule, in which case the run has no verdict.
- Parameters:
rule- The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when the run has no rule, in which case the run has no verdict.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when the run has no rule, in which case the run has no verdict.
This is a convenience method that creates an instance of theExperimentRule.Builderavoiding the need to create one manually viaExperimentRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(ExperimentRule).- Parameters:
rule- a consumer that will call methods onExperimentRule.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, as given when the run was created.
- Parameters:
metadata- Key-value facts about what the run tested, as given when the run was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the run, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when none was given.
- Parameters:
description- The description of the run, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs. Absent when none was given.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traceStats
Statistics from the agent's spans for the run, read after the run ended. Present once collection has started, which happens for a run that ends while its experiment has collectTraceStats enabled. Absent otherwise, including while the run is open.
- Parameters:
traceStats- Statistics from the agent's spans for the run, read after the run ended. Present once collection has started, which happens for a run that ends while its experiment has collectTraceStats enabled. Absent otherwise, including while the run is open.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traceStats
Statistics from the agent's spans for the run, read after the run ended. Present once collection has started, which happens for a run that ends while its experiment has collectTraceStats enabled. Absent otherwise, including while the run is open.
This is a convenience method that creates an instance of theRunTraceStats.Builderavoiding the need to create one manually viaRunTraceStats.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totraceStats(RunTraceStats).- Parameters:
traceStats- a consumer that will call methods onRunTraceStats.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
batchEvaluation
The progress of the hosted run's batch evaluation. Hosted runs only.
- Parameters:
batchEvaluation- The progress of the hosted run's batch evaluation. Hosted runs only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
batchEvaluation
default ExperimentRunDetails.Builder batchEvaluation(Consumer<BatchEvaluationProgress.Builder> batchEvaluation) The progress of the hosted run's batch evaluation. Hosted runs only.
This is a convenience method that creates an instance of theBatchEvaluationProgress.Builderavoiding the need to create one manually viaBatchEvaluationProgress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobatchEvaluation(BatchEvaluationProgress).- Parameters:
batchEvaluation- a consumer that will call methods onBatchEvaluationProgress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
summary
Case counts and rates for the run. Updated live for reported runs; for hosted runs, filled in when the AgentCore batch evaluation finishes.
- Parameters:
summary- Case counts and rates for the run. Updated live for reported runs; for hosted runs, filled in when the AgentCore batch evaluation finishes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
Case counts and rates for the run. Updated live for reported runs; for hosted runs, filled in when the AgentCore batch evaluation finishes.
This is a convenience method that creates an instance of theExperimentCaseSummary.Builderavoiding the need to create one manually viaExperimentCaseSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosummary(ExperimentCaseSummary).- Parameters:
summary- a consumer that will call methods onExperimentCaseSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metrics
Statistics for each of the run's evaluators.
- Parameters:
metrics- Statistics for each of the run's evaluators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
Statistics for each of the run's evaluators.
- Parameters:
metrics- Statistics for each of the run's evaluators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
Statistics for each of the run's evaluators.
This is a convenience method that creates an instance of theEvaluatorMetric.Builderavoiding the need to create one manually viaEvaluatorMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(List<EvaluatorMetric>).- Parameters:
metrics- a consumer that will call methods onEvaluatorMetric.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
caseRecordsWritten
The number of case records written, across every attempt and revision.
- Parameters:
caseRecordsWritten- The number of case records written, across every attempt and revision.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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.
-
checks
The result of checking each of the rule's gates.
- Parameters:
checks- The result of checking each of the rule's gates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checks
The result of checking each of the rule's gates.
- Parameters:
checks- The result of checking each of the rule's gates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checks
The result of checking each of the rule's gates.
This is a convenience method that creates an instance of theVerdictCheck.Builderavoiding the need to create one manually viaVerdictCheck.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochecks(List<VerdictCheck>).- Parameters:
checks- a consumer that will call methods onVerdictCheck.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
startedAt
The time when the run started. For reported runs, the declared run.startedAt, or createdAt if none was declared. For hosted runs, the time when the batch evaluation was created.
- Parameters:
startedAt- The time when the run started. For reported runs, the declared run.startedAt, or createdAt if none was declared. For hosted runs, the time when the batch evaluation was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
updatedAt
The time when the run was last updated.
- Parameters:
updatedAt- The time when the run was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-