Class ExperimentRunSummary
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ExperimentRunSummary.Builder,ExperimentRunSummary>
Summary of a run, as returned by ListExperimentRuns. Call GetExperimentRun for the full run.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentRunSummary.Builderbuilder()final IntegerThe total number of cases in the run.final InstantThe time when the run ended.final DoubleThe control's pass rate under this run's caseCriteria, set when the run ends.final StringThe ID of the run this run is compared with.final InstantThe time when the run was created.final StringThe ID of the run's dataset.final StringThe name of the run's dataset.final DatasetSourceTypeThe source of the run's dataset.final StringThe source of the run's dataset.final StringThe version of the run's dataset.final StringThe description of the run.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the Metadata property.metadata()Key-value facts about what the run tested.final Integerpassed()The number of cases that passed.final DoublepassRate()The share of the run's cases that passed, from 0 to 1.final ProducerKindThe kind of producer that reports the run.final StringThe kind of producer that reports the run.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 StringThe contentHash of the run's rule.final StringruleName()The name of the run's rule.final StringrunId()The ID of the run.static Class<? extends ExperimentRunSummary.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 ExperimentRunStatusstatus()The status of the run.final StringThe status of the run.Why the run did not finish.final StringWhy the run did not finish.final StringThe version of the run's target.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 RunTraceStatsThe trace stats of the run.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
-
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:
-
producerKind
The kind of producer that reports the run. Reported runs only.
If the service returns an enum value that is not available in the current SDK version,
producerKindwill returnProducerKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproducerKindAsString().- Returns:
- The kind of producer that reports the run. Reported runs only.
- See Also:
-
producerKindAsString
The kind of producer that reports the run. Reported runs only.
If the service returns an enum value that is not available in the current SDK version,
producerKindwill returnProducerKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromproducerKindAsString().- Returns:
- The kind of producer that reports the run. Reported runs only.
- See Also:
-
targetVersion
The version of the run's target.
- Returns:
- The version of the run's target.
-
datasetSource
The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
If the service returns an enum value that is not available in the current SDK version,
datasetSourcewill returnDatasetSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdatasetSourceAsString().- Returns:
- The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
- See Also:
-
datasetSourceAsString
The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
If the service returns an enum value that is not available in the current SDK version,
datasetSourcewill returnDatasetSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdatasetSourceAsString().- Returns:
- The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
- See Also:
-
datasetId
-
datasetName
The name of the run's dataset.
- Returns:
- The name of the run's dataset.
-
datasetVersion
The version of the run's dataset.
- Returns:
- The version of the run's dataset.
-
ruleName
-
ruleContentHash
The contentHash of the run's rule. Runs with equal hashes have the same case criteria and gates.
- Returns:
- The contentHash of the run's rule. Runs with equal hashes have the same case criteria and gates.
-
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.
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.
-
description
-
traceStats
The trace stats of the run. Absent on an experiment's latestRun.
- Returns:
- The trace stats of the run. Absent on an experiment's latestRun.
-
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%)".
-
passRate
The share of the run's cases that passed, from 0 to 1. Runs with a rule only.
- Returns:
- The share of the run's cases that passed, from 0 to 1. Runs with a rule only.
-
controlPassRate
The control's pass rate under this run's caseCriteria, set when the run ends.
- Returns:
- The control's pass rate under this run's caseCriteria, set when the run ends.
-
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:
-
controlRunId
The ID of the run this run is compared with.
- Returns:
- The ID of the run this run is compared with.
-
casesTotal
The total number of cases in the run.
- Returns:
- The total number of cases in the run.
-
passed
The number of cases that passed.
- Returns:
- The number of cases that passed.
-
createdAt
The time when the run was created.
- Returns:
- The time when the run was created.
-
completedAt
The time when the run ended.
- Returns:
- The time when the run ended.
-
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<ExperimentRunSummary.Builder,ExperimentRunSummary> - 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.
-