Class ScoreBody

java.lang.Object
com.ants.platform.client.resources.ingestion.types.ScoreBody

public final class ScoreBody extends Object
  • Method Details

    • getId

      public Optional<String> getId()
    • getTraceId

      public Optional<String> getTraceId()
    • getSessionId

      public Optional<String> getSessionId()
    • getObservationId

      public Optional<String> getObservationId()
    • getDatasetRunId

      public Optional<String> getDatasetRunId()
    • getName

      public String getName()
    • getEnvironment

      public Optional<String> getEnvironment()
    • getValue

      public CreateScoreValue getValue()
      Returns:
      The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false)
    • getComment

      public Optional<String> getComment()
    • getMetadata

      public Optional<Object> getMetadata()
    • getDataType

      public Optional<ScoreDataType> getDataType()
      Returns:
      When set, must match the score value's type. If not set, will be inferred from the score value or config
    • getConfigId

      public Optional<String> getConfigId()
      Returns:
      Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config's range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config's max and min values
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ScoreBody.NameStage builder()