Package dev.dokimos.server.dto.v1
Record Class TraceEvalRuleView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TraceEvalRuleView
public record TraceEvalRuleView(UUID id, UUID projectId, String name, boolean enabled, TraceMatchType matchType, String matchKey, String matchValue, UUID connectionId, String evaluatorName, String criteria, double minScore, double maxScore, Double threshold, Instant createdAt, Instant updatedAt)
extends Record
Public view of a
TraceEvalRule.-
Constructor Summary
ConstructorsConstructorDescriptionTraceEvalRuleView(UUID id, UUID projectId, String name, boolean enabled, TraceMatchType matchType, String matchKey, String matchValue, UUID connectionId, String evaluatorName, String criteria, double minScore, double maxScore, Double threshold, Instant createdAt, Instant updatedAt) Creates an instance of aTraceEvalRuleViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionIdrecord component.Returns the value of thecreatedAtrecord component.criteria()Returns the value of thecriteriarecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorNamerecord component.static TraceEvalRuleViewfrom(TraceEvalRule rule) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.matchKey()Returns the value of thematchKeyrecord component.Returns the value of thematchTyperecord component.Returns the value of thematchValuerecord component.doublemaxScore()Returns the value of themaxScorerecord component.doubleminScore()Returns the value of theminScorerecord component.name()Returns the value of thenamerecord component.Returns the value of theprojectIdrecord component.Returns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
TraceEvalRuleView
public TraceEvalRuleView(UUID id, UUID projectId, String name, boolean enabled, TraceMatchType matchType, String matchKey, String matchValue, UUID connectionId, String evaluatorName, String criteria, double minScore, double maxScore, Double threshold, Instant createdAt, Instant updatedAt) Creates an instance of aTraceEvalRuleViewrecord class.- Parameters:
id- the value for theidrecord componentprojectId- the value for theprojectIdrecord componentname- the value for thenamerecord componentenabled- the value for theenabledrecord componentmatchType- the value for thematchTyperecord componentmatchKey- the value for thematchKeyrecord componentmatchValue- the value for thematchValuerecord componentconnectionId- the value for theconnectionIdrecord componentevaluatorName- the value for theevaluatorNamerecord componentcriteria- the value for thecriteriarecord componentminScore- the value for theminScorerecord componentmaxScore- the value for themaxScorerecord componentthreshold- the value for thethresholdrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord 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
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
matchType
Returns the value of thematchTyperecord component.- Returns:
- the value of the
matchTyperecord component
-
matchKey
Returns the value of thematchKeyrecord component.- Returns:
- the value of the
matchKeyrecord component
-
matchValue
Returns the value of thematchValuerecord component.- Returns:
- the value of the
matchValuerecord component
-
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
evaluatorName
Returns the value of theevaluatorNamerecord component.- Returns:
- the value of the
evaluatorNamerecord component
-
criteria
Returns the value of thecriteriarecord component.- Returns:
- the value of the
criteriarecord component
-
minScore
public double minScore()Returns the value of theminScorerecord component.- Returns:
- the value of the
minScorerecord component
-
maxScore
public double maxScore()Returns the value of themaxScorerecord component.- Returns:
- the value of the
maxScorerecord component
-
threshold
Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-