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 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 a TraceEvalRuleView record class.
      Parameters:
      id - the value for the id record component
      projectId - the value for the projectId record component
      name - the value for the name record component
      enabled - the value for the enabled record component
      matchType - the value for the matchType record component
      matchKey - the value for the matchKey record component
      matchValue - the value for the matchValue record component
      connectionId - the value for the connectionId record component
      evaluatorName - the value for the evaluatorName record component
      criteria - the value for the criteria record component
      minScore - the value for the minScore record component
      maxScore - the value for the maxScore record component
      threshold - the value for the threshold record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt record component
  • Method Details

    • from

      public static TraceEvalRuleView from(TraceEvalRule rule)
    • 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
    • projectId

      public UUID projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • matchType

      public TraceMatchType matchType()
      Returns the value of the matchType record component.
      Returns:
      the value of the matchType record component
    • matchKey

      public String matchKey()
      Returns the value of the matchKey record component.
      Returns:
      the value of the matchKey record component
    • matchValue

      public String matchValue()
      Returns the value of the matchValue record component.
      Returns:
      the value of the matchValue record component
    • connectionId

      public UUID connectionId()
      Returns the value of the connectionId record component.
      Returns:
      the value of the connectionId record component
    • evaluatorName

      public String evaluatorName()
      Returns the value of the evaluatorName record component.
      Returns:
      the value of the evaluatorName record component
    • criteria

      public String criteria()
      Returns the value of the criteria record component.
      Returns:
      the value of the criteria record component
    • minScore

      public double minScore()
      Returns the value of the minScore record component.
      Returns:
      the value of the minScore record component
    • maxScore

      public double maxScore()
      Returns the value of the maxScore record component.
      Returns:
      the value of the maxScore record component
    • threshold

      public Double threshold()
      Returns the value of the threshold record component.
      Returns:
      the value of the threshold record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component