Class ExperimentRunDetails
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ExperimentRunDetails.Builder,ExperimentRunDetails>
Detailed information about a run of an experiment.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal BatchEvaluationProgressThe progress of the hosted run's batch evaluation.static ExperimentRunDetails.Builderbuilder()final IntegerThe number of case records written, across every attempt and revision.final List<VerdictCheck> checks()The result of checking each of the rule's gates.final InstantThe time when the run ended.final ControlSourcecontrol()What the run is compared against, as given.final StringThe ID of the run this run is compared with, resolved when the run starts: either the live control run or the earlier run.final InstantThe time when the run was created.final ExperimentRunDatasetdataset()The dataset the run tested.final StringThe description of the run, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List<ExperimentEvaluator> The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.final StringThe ID of the experiment the run belongs to.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the Checks property.final booleanFor responses, this returns true if the service returned a value for the Evaluators property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Metadata property.final booleanFor responses, this returns true if the service returned a value for the Metrics property.metadata()Key-value facts about what the run tested, as given when the run was created.final List<EvaluatorMetric> metrics()Statistics for each of the run's evaluators.final ExperimentProducerproducer()The producer that reports the run.final StringThe IAM principal that started the run, without the session name.final RunRolerole()The role of the run: TARGET, or CONTROL for a live control run.final StringThe role of the run: TARGET, or CONTROL for a live control run.final ExperimentRulerule()The rule the run is checked against, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.final StringrunId()The ID of the run.static Class<? extends ExperimentRunDetails.Builder> final ExperimentRunSourcesource()Whether the run is reported by the caller's code or hosted by the service.final StringWhether the run is reported by the caller's code or hosted by the service.final InstantThe time when the run started.final ExperimentRunStatusstatus()The status of the run.final StringThe status of the run.final StringAdditional detail about the status: the StopExperimentRun detail, or for RUNNER_FAILED, the AgentCore error details as one string of up to 1,000 characters.Why the run did not finish.final StringWhy the run did not finish.final ExperimentCaseSummarysummary()Case counts and rates for the run.final TargetConfigtarget()The version of the experiment's target that the run tested, as given when the run was started or created.final StringFor a CONTROL run, the ID of the run it is the control for.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final RunTraceStatsStatistics from the agent's spans for the run, read after the run ended.final InstantThe time when the run was last updated.final Verdictverdict()The verdict of the run.final StringThe verdict of the run.final StringA readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".final VerdictReasonCodeThe reason for the run's verdict.final StringThe reason for the run's verdict.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
experimentId
The ID of the experiment the run belongs to.
- Returns:
- The ID of the experiment the run belongs to.
-
runId
-
source
Whether the run is reported by the caller's code or hosted by the service.
If the service returns an enum value that is not available in the current SDK version,
sourcewill returnExperimentRunSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceAsString().- Returns:
- Whether the run is reported by the caller's code or hosted by the service.
- See Also:
-
sourceAsString
Whether the run is reported by the caller's code or hosted by the service.
If the service returns an enum value that is not available in the current SDK version,
sourcewill returnExperimentRunSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceAsString().- Returns:
- Whether the run is reported by the caller's code or hosted by the service.
- See Also:
-
status
The status of the run.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnExperimentRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the run.
- See Also:
-
statusAsString
The status of the run.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnExperimentRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the run.
- See Also:
-
statusReason
Why the run did not finish. Present when status is DID_NOT_FINISH.
If the service returns an enum value that is not available in the current SDK version,
statusReasonwill returnExperimentRunStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonAsString().- Returns:
- Why the run did not finish. Present when status is DID_NOT_FINISH.
- See Also:
-
statusReasonAsString
Why the run did not finish. Present when status is DID_NOT_FINISH.
If the service returns an enum value that is not available in the current SDK version,
statusReasonwill returnExperimentRunStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusReasonAsString().- Returns:
- Why the run did not finish. Present when status is DID_NOT_FINISH.
- 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.
- Returns:
- 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.
-
producer
The producer that reports the run. Reported runs only.
- Returns:
- The producer that reports the run. Reported runs only.
-
producerPrincipal
The IAM principal that started the run, without the session name.
- Returns:
- The IAM principal that started the run, without the session name.
-
target
The version of the experiment's target that the run tested, as given when the run was started or created.
- Returns:
- The version of the experiment's target that the run tested, as given when the run was started or created.
-
control
What the run is compared against, as given.
- Returns:
- What the run is compared against, as given.
-
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:
- The ID of the run this run is compared with, resolved when the run starts: either the live control run or the earlier run.
-
role
The role of the run: TARGET, or CONTROL for a live control run.
If the service returns an enum value that is not available in the current SDK version,
rolewill returnRunRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- The role of the run: TARGET, or CONTROL for a live control run.
- See Also:
-
roleAsString
The role of the run: TARGET, or CONTROL for a live control run.
If the service returns an enum value that is not available in the current SDK version,
rolewill returnRunRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- The role of the run: TARGET, or CONTROL for a live control run.
- See Also:
-
targetRunId
For a CONTROL run, the ID of the run it is the control for.
- Returns:
- For a CONTROL run, the ID of the run it is the control for.
-
dataset
The dataset the run tested.
- Returns:
- The dataset the run tested.
-
hasEvaluators
public final boolean hasEvaluators()For responses, this returns true if the service returned a value for the Evaluators property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
evaluators
The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasEvaluators()method.- Returns:
- The evaluators the run is scored with, as given to StartExperimentRun for hosted runs or to the creating PutExperimentRunResults call for reported runs.
-
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:
- 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.
-
hasMetadata
public final boolean hasMetadata()For responses, this returns true if the service returned a value for the Metadata property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
metadata
Key-value facts about what the run tested, as given when the run was created.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMetadata()method.- Returns:
- Key-value facts about what the run tested, as given when the run was created.
-
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:
- 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.
-
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:
- 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.
-
batchEvaluation
The progress of the hosted run's batch evaluation. Hosted runs only.
- Returns:
- The progress of the hosted run's batch evaluation. Hosted runs only.
-
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:
- Case counts and rates for the run. Updated live for reported runs; for hosted runs, filled in when the AgentCore batch evaluation finishes.
-
hasMetrics
public final boolean hasMetrics()For responses, this returns true if the service returned a value for the Metrics property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
metrics
Statistics for each of the run's evaluators.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMetrics()method.- Returns:
- Statistics for each of the run's evaluators.
-
caseRecordsWritten
The number of case records written, across every attempt and revision.
- Returns:
- The number of case records written, across every attempt and revision.
-
verdict
The verdict of the run. Present only for runs with a rule, once the run has ended.
If the service returns an enum value that is not available in the current SDK version,
verdictwill returnVerdict.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverdictAsString().- Returns:
- The verdict of the run. Present only for runs with a rule, once the run has ended.
- See Also:
-
verdictAsString
The verdict of the run. Present only for runs with a rule, once the run has ended.
If the service returns an enum value that is not available in the current SDK version,
verdictwill returnVerdict.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverdictAsString().- Returns:
- The verdict of the run. Present only for runs with a rule, once the run has ended.
- See Also:
-
verdictReasonCode
The reason for the run's verdict.
If the service returns an enum value that is not available in the current SDK version,
verdictReasonCodewill returnVerdictReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverdictReasonCodeAsString().- Returns:
- The reason for the run's verdict.
- See Also:
-
verdictReasonCodeAsString
The reason for the run's verdict.
If the service returns an enum value that is not available in the current SDK version,
verdictReasonCodewill returnVerdictReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromverdictReasonCodeAsString().- Returns:
- The reason for the run's verdict.
- See Also:
-
verdictReason
A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".
- Returns:
- A readable explanation of verdictReasonCode, such as "pass rate 82% (required 90%)".
-
hasChecks
public final boolean hasChecks()For responses, this returns true if the service returned a value for the Checks property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
checks
The result of checking each of the rule's gates.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasChecks()method.- Returns:
- The result of checking each of the rule's gates.
-
createdAt
The time when the run was created.
- Returns:
- The time when the run was created.
-
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:
- 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.
-
completedAt
The time when the run ended.
- Returns:
- The time when the run ended.
-
updatedAt
The time when the run was last updated.
- Returns:
- The time when the run was last updated.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ExperimentRunDetails.Builder,ExperimentRunDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-