Package dev.dokimos.server.dto.v1
Record Class RunDetails
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.RunDetails
- Record Components:
pricedItemCount- items that carried a non-null cost, or null if not computedtokenizedItemCount- items that carried a non-null prompt-token count, or null if not computed
public record RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String,Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs, Long pricedItemCount, Long tokenizedItemCount, org.springframework.data.domain.Page<RunDetails.ItemSummary> items)
extends Record
Detail view of a single run. The two coverage counts let the UI flag partial pricing: when
pricedItemCount < tokenizedItemCount the summed totalCostUsd omits the unpriced
items. Both are nullable and additive; older clients ignore them.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionRunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String, Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs, Long pricedItemCount, Long tokenizedItemCount, org.springframework.data.domain.Page<RunDetails.ItemSummary> items) Creates an instance of aRunDetailsrecord 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.Returns the value of theexperimentIdrecord component.Returns the value of theexperimentNamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.org.springframework.data.domain.Page<RunDetails.ItemSummary> items()Returns the value of theitemsrecord component.longReturns the value of thepassedItemsrecord component.passRate()Returns the value of thepassRaterecord component.Returns the value of thepricedItemCountrecord component.Returns the value of theprojectNamerecord component.Returns the value of thestartedAtrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetokenizedItemCountrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalCostUsdrecord component.longReturns the value of thetotalItemsrecord component.Returns the value of thetotalTokensInrecord component.Returns the value of thetotalTokensOutrecord component.
-
Constructor Details
-
RunDetails
public RunDetails(UUID id, UUID experimentId, String experimentName, String projectName, RunStatus status, Map<String, Object> config, long totalItems, long passedItems, Double passRate, Instant startedAt, Instant completedAt, UUID datasetVersionId, Integer datasetVersion, Long totalTokensIn, Long totalTokensOut, Double totalCostUsd, Double avgLatencyMs, Long pricedItemCount, Long tokenizedItemCount, org.springframework.data.domain.Page<RunDetails.ItemSummary> items) Creates an instance of aRunDetailsrecord class.- Parameters:
id- the value for theidrecord componentexperimentId- the value for theexperimentIdrecord componentexperimentName- the value for theexperimentNamerecord componentprojectName- the value for theprojectNamerecord componentstatus- the value for thestatusrecord componentconfig- the value for theconfigrecord componenttotalItems- the value for thetotalItemsrecord componentpassedItems- the value for thepassedItemsrecord 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 componentpricedItemCount- the value for thepricedItemCountrecord componenttokenizedItemCount- the value for thetokenizedItemCountrecord componentitems- the value for theitemsrecord 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
-
experimentId
Returns the value of theexperimentIdrecord component.- Returns:
- the value of the
experimentIdrecord component
-
experimentName
Returns the value of theexperimentNamerecord component.- Returns:
- the value of the
experimentNamerecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord 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
-
totalItems
public long totalItems()Returns the value of thetotalItemsrecord component.- Returns:
- the value of the
totalItemsrecord component
-
passedItems
public long passedItems()Returns the value of thepassedItemsrecord component.- Returns:
- the value of the
passedItemsrecord 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
-
pricedItemCount
Returns the value of thepricedItemCountrecord component.- Returns:
- the value of the
pricedItemCountrecord component
-
tokenizedItemCount
Returns the value of thetokenizedItemCountrecord component.- Returns:
- the value of the
tokenizedItemCountrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-