Class ExperimentRunSummary

java.lang.Object
software.amazon.awssdk.services.cloudwatchomni.model.ExperimentRunSummary
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ExperimentRunSummary.Builder,ExperimentRunSummary>

@Generated("software.amazon.awssdk:codegen") public final class ExperimentRunSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ExperimentRunSummary.Builder,ExperimentRunSummary>

Summary of a run, as returned by ListExperimentRuns. Call GetExperimentRun for the full run.

See Also:
  • Method Details

    • runId

      public final String runId()

      The ID of the run.

      Returns:
      The ID of the run.
    • source

      public final ExperimentRunSource 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, source will return ExperimentRunSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sourceAsString().

      Returns:
      Whether the run is reported by the caller's code or hosted by the service.
      See Also:
    • sourceAsString

      public final String 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, source will return ExperimentRunSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from sourceAsString().

      Returns:
      Whether the run is reported by the caller's code or hosted by the service.
      See Also:
    • status

      public final ExperimentRunStatus status()

      The status of the run.

      If the service returns an enum value that is not available in the current SDK version, status will return ExperimentRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the run.
      See Also:
    • statusAsString

      public final String statusAsString()

      The status of the run.

      If the service returns an enum value that is not available in the current SDK version, status will return ExperimentRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The status of the run.
      See Also:
    • statusReason

      public final ExperimentRunStatusReason 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, statusReason will return ExperimentRunStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusReasonAsString().

      Returns:
      Why the run did not finish. Present when status is DID_NOT_FINISH.
      See Also:
    • statusReasonAsString

      public final String 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, statusReason will return ExperimentRunStatusReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusReasonAsString().

      Returns:
      Why the run did not finish. Present when status is DID_NOT_FINISH.
      See Also:
    • producerKind

      public final ProducerKind 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, producerKind will return ProducerKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from producerKindAsString().

      Returns:
      The kind of producer that reports the run. Reported runs only.
      See Also:
    • producerKindAsString

      public final String 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, producerKind will return ProducerKind.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from producerKindAsString().

      Returns:
      The kind of producer that reports the run. Reported runs only.
      See Also:
    • targetVersion

      public final String targetVersion()

      The version of the run's target.

      Returns:
      The version of the run's target.
    • datasetSource

      public final DatasetSourceType 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, datasetSource will return DatasetSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from datasetSourceAsString().

      Returns:
      The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
      See Also:
    • datasetSourceAsString

      public final String 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, datasetSource will return DatasetSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from datasetSourceAsString().

      Returns:
      The source of the run's dataset. FILE and OTHER datasets might have only a name, without an ID.
      See Also:
    • datasetId

      public final String datasetId()

      The ID of the run's dataset.

      Returns:
      The ID of the run's dataset.
    • datasetName

      public final String datasetName()

      The name of the run's dataset.

      Returns:
      The name of the run's dataset.
    • datasetVersion

      public final String datasetVersion()

      The version of the run's dataset.

      Returns:
      The version of the run's dataset.
    • ruleName

      public final String ruleName()

      The name of the run's rule.

      Returns:
      The name of the run's rule.
    • ruleContentHash

      public final String 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 the isEmpty() 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

      public final Map<String,String> 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

      public final String description()

      The description of the run.

      Returns:
      The description of the run.
    • traceStats

      public final RunTraceStats 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

      public final Verdict 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, verdict will return Verdict.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from verdictAsString().

      Returns:
      The verdict of the run. Present only for runs with a rule, once the run has ended.
      See Also:
    • verdictAsString

      public final String 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, verdict will return Verdict.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from verdictAsString().

      Returns:
      The verdict of the run. Present only for runs with a rule, once the run has ended.
      See Also:
    • verdictReasonCode

      public final VerdictReasonCode verdictReasonCode()

      The reason for the run's verdict.

      If the service returns an enum value that is not available in the current SDK version, verdictReasonCode will return VerdictReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from verdictReasonCodeAsString().

      Returns:
      The reason for the run's verdict.
      See Also:
    • verdictReasonCodeAsString

      public final String verdictReasonCodeAsString()

      The reason for the run's verdict.

      If the service returns an enum value that is not available in the current SDK version, verdictReasonCode will return VerdictReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from verdictReasonCodeAsString().

      Returns:
      The reason for the run's verdict.
      See Also:
    • verdictReason

      public final String 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

      public final Double 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

      public final Double 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

      public final RunRole 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, role will return RunRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from roleAsString().

      Returns:
      The role of the run: TARGET, or CONTROL for a live control run.
      See Also:
    • roleAsString

      public final String 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, role will return RunRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from roleAsString().

      Returns:
      The role of the run: TARGET, or CONTROL for a live control run.
      See Also:
    • controlRunId

      public final String controlRunId()

      The ID of the run this run is compared with.

      Returns:
      The ID of the run this run is compared with.
    • casesTotal

      public final Integer casesTotal()

      The total number of cases in the run.

      Returns:
      The total number of cases in the run.
    • passed

      public final Integer passed()

      The number of cases that passed.

      Returns:
      The number of cases that passed.
    • createdAt

      public final Instant createdAt()

      The time when the run was created.

      Returns:
      The time when the run was created.
    • completedAt

      public final Instant completedAt()

      The time when the run ended.

      Returns:
      The time when the run ended.
    • toBuilder

      public ExperimentRunSummary.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ExperimentRunSummary.Builder,ExperimentRunSummary>
      Returns:
      a builder for type T
    • builder

      public static ExperimentRunSummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ExperimentRunSummary.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.