Record Class RunSummary

java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.RunSummary

public record RunSummary(UUID id, RunStatus status, Map<String,Object> config, long itemCount, long passedCount, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs) extends Record
Summary view of a single run in a list.
  • Constructor Details

    • RunSummary

      public RunSummary(UUID id, RunStatus status, Map<String,Object> config, long itemCount, long passedCount, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs)
      Creates an instance of a RunSummary record class.
      Parameters:
      id - the value for the id record component
      status - the value for the status record component
      config - the value for the config record component
      itemCount - the value for the itemCount record component
      passedCount - the value for the passedCount record component
      passRate - the value for the passRate record component
      startedAt - the value for the startedAt record component
      completedAt - the value for the completedAt record component
      datasetVersionId - the value for the datasetVersionId record component
      datasetVersion - the value for the datasetVersion record component
      totalTokensIn - the value for the totalTokensIn record component
      totalTokensOut - the value for the totalTokensOut record component
      totalCostUsd - the value for the totalCostUsd record component
      avgLatencyMs - the value for the avgLatencyMs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • status

      public RunStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • config

      public Map<String,Object> config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component
    • itemCount

      public long itemCount()
      Returns the value of the itemCount record component.
      Returns:
      the value of the itemCount record component
    • passedCount

      public long passedCount()
      Returns the value of the passedCount record component.
      Returns:
      the value of the passedCount record component
    • passRate

      public Double passRate()
      Returns the value of the passRate record component.
      Returns:
      the value of the passRate record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • completedAt

      public Instant completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • datasetVersionId

      public UUID datasetVersionId()
      Returns the value of the datasetVersionId record component.
      Returns:
      the value of the datasetVersionId record component
    • datasetVersion

      public Integer datasetVersion()
      Returns the value of the datasetVersion record component.
      Returns:
      the value of the datasetVersion record component
    • totalTokensIn

      public Long totalTokensIn()
      Returns the value of the totalTokensIn record component.
      Returns:
      the value of the totalTokensIn record component
    • totalTokensOut

      public Long totalTokensOut()
      Returns the value of the totalTokensOut record component.
      Returns:
      the value of the totalTokensOut record component
    • totalCostUsd

      public Double totalCostUsd()
      Returns the value of the totalCostUsd record component.
      Returns:
      the value of the totalCostUsd record component
    • avgLatencyMs

      public Double avgLatencyMs()
      Returns the value of the avgLatencyMs record component.
      Returns:
      the value of the avgLatencyMs record component