Class ExperimentEvaluator

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

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

An evaluator that a run is scored with.

See Also:
  • Method Details

    • evaluatorId

      public final String evaluatorId()

      The ID of the evaluator, unique among the run's evaluators. The run's rule and case results refer to the evaluator by this ID.

      Returns:
      The ID of the evaluator, unique among the run's evaluators. The run's rule and case results refer to the evaluator by this ID.
    • ratingScale

      public final RatingScale ratingScale()

      The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.

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

      Returns:
      The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.
      See Also:
    • ratingScaleAsString

      public final String ratingScaleAsString()

      The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.

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

      Returns:
      The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.
      See Also:
    • scoreDirection

      public final ScoreDirection scoreDirection()

      Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.

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

      Returns:
      Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.
      See Also:
    • scoreDirectionAsString

      public final String scoreDirectionAsString()

      Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.

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

      Returns:
      Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.
      See Also:
    • toBuilder

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

      public static ExperimentEvaluator.Builder builder()
    • serializableBuilderClass

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