Class ExperimentCaseSummary

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

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

Case counts and rates for a run.

Rates use casesTotal as the denominator once the run is COMPLETED, and casesDone while it is RUNNING or STOPPING or when it is DID_NOT_FINISH. A rate is absent when its denominator is 0.

See Also:
  • Method Details

    • casesTotal

      public final Integer casesTotal()

      The total number of cases in the run.

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

      public final Integer casesReported()

      The number of cases reported so far.

      Returns:
      The number of cases reported so far.
    • casesDone

      public final Integer casesDone()

      The number of cases that have reached a final status.

      Returns:
      The number of cases that have reached a final status.
    • passed

      public final Integer passed()

      The number of cases with status PASSED.

      Returns:
      The number of cases with status PASSED.
    • failed

      public final Integer failed()

      The number of cases with status FAILED.

      Returns:
      The number of cases with status FAILED.
    • completed

      public final Integer completed()

      The number of cases with status COMPLETED.

      Returns:
      The number of cases with status COMPLETED.
    • targetError

      public final Integer targetError()

      The number of cases with status TARGET_ERROR.

      Returns:
      The number of cases with status TARGET_ERROR.
    • timedOut

      public final Integer timedOut()

      The number of cases with status TIMED_OUT.

      Returns:
      The number of cases with status TIMED_OUT.
    • notScored

      public final Integer notScored()

      The number of cases with status NOT_SCORED.

      Returns:
      The number of cases with status NOT_SCORED.
    • notRun

      public final Integer notRun()

      The number of cases with status NOT_RUN, including cases that were never reported.

      Returns:
      The number of cases with status NOT_RUN, including cases that were never reported.
    • passRate

      public final Double passRate()

      The share of cases that passed, from 0 to 1. Present only for runs with a rule.

      Returns:
      The share of cases that passed, from 0 to 1. Present only for runs with a rule.
    • notScoredRate

      public final Double notScoredRate()

      The share of cases with no score, from 0 to 1.

      Returns:
      The share of cases with no score, from 0 to 1.
    • toBuilder

      public ExperimentCaseSummary.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<ExperimentCaseSummary.Builder,ExperimentCaseSummary>
      Returns:
      a builder for type T
    • builder

      public static ExperimentCaseSummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ExperimentCaseSummary.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.