Package dev.dokimos.server.dto.v1
Record Class TraceEvalJobView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TraceEvalJobView
public record TraceEvalJobView(UUID id, UUID spanId, UUID ruleId, String evaluatorName, TraceEvalJobStatus status, Double score, Boolean success, String reason, int attemptCount, String lastError, Instant createdAt, Instant completedAt)
extends Record
Public view of a
TraceEvalJob, returned in the per-trace detail.-
Constructor Summary
ConstructorsConstructorDescriptionTraceEvalJobView(UUID id, UUID spanId, UUID ruleId, String evaluatorName, TraceEvalJobStatus status, Double score, Boolean success, String reason, int attemptCount, String lastError, Instant createdAt, Instant completedAt) Creates an instance of aTraceEvalJobViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattemptCountrecord component.Returns the value of thecompletedAtrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorNamerecord component.static TraceEvalJobViewfrom(TraceEvalJob job) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelastErrorrecord component.reason()Returns the value of thereasonrecord component.ruleId()Returns the value of theruleIdrecord component.score()Returns the value of thescorerecord component.spanId()Returns the value of thespanIdrecord component.status()Returns the value of thestatusrecord component.success()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TraceEvalJobView
public TraceEvalJobView(UUID id, UUID spanId, UUID ruleId, String evaluatorName, TraceEvalJobStatus status, Double score, Boolean success, String reason, int attemptCount, String lastError, Instant createdAt, Instant completedAt) Creates an instance of aTraceEvalJobViewrecord class.- Parameters:
id- the value for theidrecord componentspanId- the value for thespanIdrecord componentruleId- the value for theruleIdrecord componentevaluatorName- the value for theevaluatorNamerecord componentstatus- the value for thestatusrecord componentscore- the value for thescorerecord componentsuccess- the value for thesuccessrecord componentreason- the value for thereasonrecord componentattemptCount- the value for theattemptCountrecord componentlastError- the value for thelastErrorrecord componentcreatedAt- the value for thecreatedAtrecord componentcompletedAt- the value for thecompletedAtrecord component
-
-
Method Details
-
from
-
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
-
spanId
Returns the value of thespanIdrecord component.- Returns:
- the value of the
spanIdrecord component
-
ruleId
Returns the value of theruleIdrecord component.- Returns:
- the value of the
ruleIdrecord component
-
evaluatorName
Returns the value of theevaluatorNamerecord component.- Returns:
- the value of the
evaluatorNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
score
Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
success
Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
attemptCount
public int attemptCount()Returns the value of theattemptCountrecord component.- Returns:
- the value of the
attemptCountrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
completedAt
Returns the value of thecompletedAtrecord component.- Returns:
- the value of the
completedAtrecord component
-