Class GetScoresRequest

java.lang.Object
com.ants.platform.client.resources.scorev2.requests.GetScoresRequest

public final class GetScoresRequest extends Object
  • Method Details

    • getPage

      public Optional<Integer> getPage()
      Returns:
      Page number, starts at 1.
    • getLimit

      public Optional<Integer> getLimit()
      Returns:
      Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
    • getUserId

      public Optional<String> getUserId()
      Returns:
      Retrieve only scores with this userId associated to the trace.
    • getName

      public Optional<String> getName()
      Returns:
      Retrieve only scores with this name.
    • getFromTimestamp

      public Optional<OffsetDateTime> getFromTimestamp()
      Returns:
      Optional filter to only include scores created on or after a certain datetime (ISO 8601)
    • getToTimestamp

      public Optional<OffsetDateTime> getToTimestamp()
      Returns:
      Optional filter to only include scores created before a certain datetime (ISO 8601)
    • getEnvironment

      public Optional<String> getEnvironment()
      Returns:
      Optional filter for scores where the environment is one of the provided values.
    • getSource

      public Optional<ScoreSource> getSource()
      Returns:
      Retrieve only scores from a specific source.
    • getOperator

      public Optional<String> getOperator()
      Returns:
      Retrieve only scores with <operator> value.
    • getValue

      public Optional<Double> getValue()
      Returns:
      Retrieve only scores with <operator> value.
    • getScoreIds

      public Optional<String> getScoreIds()
      Returns:
      Comma-separated list of score IDs to limit the results to.
    • getConfigId

      public Optional<String> getConfigId()
      Returns:
      Retrieve only scores with a specific configId.
    • getQueueId

      public Optional<String> getQueueId()
      Returns:
      Retrieve only scores with a specific annotation queueId.
    • getDataType

      public Optional<ScoreDataType> getDataType()
      Returns:
      Retrieve only scores with a specific dataType.
    • getTraceTags

      public Optional<String> getTraceTags()
      Returns:
      Only scores linked to traces that include all of these tags will be returned.
    • 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 GetScoresRequest.Builder builder()