Package dev.dokimos.server.dto.v1
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 Summary
ConstructorsConstructorDescriptionRunSummary(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 aRunSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavgLatencyMsrecord component.Returns the value of thecompletedAtrecord component.config()Returns the value of theconfigrecord component.Returns the value of thedatasetVersionrecord component.Returns the value of thedatasetVersionIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longReturns the value of theitemCountrecord component.longReturns the value of thepassedCountrecord component.passRate()Returns the value of thepassRaterecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalCostUsdrecord component.Returns the value of thetotalTokensInrecord component.Returns the value of thetotalTokensOutrecord component.
-
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 aRunSummaryrecord class.- Parameters:
id- the value for theidrecord componentstatus- the value for thestatusrecord componentconfig- the value for theconfigrecord componentitemCount- the value for theitemCountrecord componentpassedCount- the value for thepassedCountrecord componentpassRate- the value for thepassRaterecord componentstartedAt- the value for thestartedAtrecord componentcompletedAt- the value for thecompletedAtrecord componentdatasetVersionId- the value for thedatasetVersionIdrecord componentdatasetVersion- the value for thedatasetVersionrecord componenttotalTokensIn- the value for thetotalTokensInrecord componenttotalTokensOut- the value for thetotalTokensOutrecord componenttotalCostUsd- the value for thetotalCostUsdrecord componentavgLatencyMs- the value for theavgLatencyMsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
itemCount
public long itemCount()Returns the value of theitemCountrecord component.- Returns:
- the value of the
itemCountrecord component
-
passedCount
public long passedCount()Returns the value of thepassedCountrecord component.- Returns:
- the value of the
passedCountrecord component
-
passRate
Returns the value of thepassRaterecord component.- Returns:
- the value of the
passRaterecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-
datasetVersionId
Returns the value of thedatasetVersionIdrecord component.- Returns:
- the value of the
datasetVersionIdrecord component
-
datasetVersion
Returns the value of thedatasetVersionrecord component.- Returns:
- the value of the
datasetVersionrecord component
-
totalTokensIn
Returns the value of thetotalTokensInrecord component.- Returns:
- the value of the
totalTokensInrecord component
-
totalTokensOut
Returns the value of thetotalTokensOutrecord component.- Returns:
- the value of the
totalTokensOutrecord component
-
totalCostUsd
Returns the value of thetotalCostUsdrecord component.- Returns:
- the value of the
totalCostUsdrecord component
-
avgLatencyMs
Returns the value of theavgLatencyMsrecord component.- Returns:
- the value of the
avgLatencyMsrecord component
-