Package akka.javasdk.ledger
Record Class EvaluationRecord
- Record Components:
evaluationId- the globally unique id of the evaluationevaluatorComponentId- the component id of the evaluator that ran the evaluationcontrolId- the control id that the evaluator declares, or empty when it declares nonetrigger- what caused the evaluation to runinteractionId- the id of the interaction that was evaluatedagentComponentId- the component id of the agent whose interaction was evaluatedoutcome- the terminal outcome of the evaluationtimestamp- when the evaluation was recorded
public record EvaluationRecord(String evaluationId, String evaluatorComponentId, Optional<String> controlId, EvaluationRecord.Trigger trigger, String interactionId, String agentComponentId, EvaluationRecord.Outcome outcome, Instant timestamp)
extends Record
The record of a single evaluation, as fetched from the ledger.
An evaluation is recorded when it terminates, so a fetched record always carries a terminal
EvaluationRecord.Outcome: the verdict it reached, or why it did not reach one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe terminal outcome of an evaluation.static enumWhat caused an evaluation to run. -
Constructor Summary
ConstructorsConstructorDescriptionEvaluationRecord(String evaluationId, String evaluatorComponentId, Optional<String> controlId, EvaluationRecord.Trigger trigger, String interactionId, String agentComponentId, EvaluationRecord.Outcome outcome, Instant timestamp) Creates an instance of aEvaluationRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentComponentIdrecord component.Returns the value of thecontrolIdrecord component.final booleanIndicates whether some other object is "equal to" this one.The verdict this evaluation reached, or empty for an inconclusive or failed evaluation.Returns the value of theevaluationIdrecord component.Returns the value of theevaluatorComponentIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.outcome()Returns the value of theoutcomerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
-
Constructor Details
-
EvaluationRecord
public EvaluationRecord(String evaluationId, String evaluatorComponentId, Optional<String> controlId, EvaluationRecord.Trigger trigger, String interactionId, String agentComponentId, EvaluationRecord.Outcome outcome, Instant timestamp) Creates an instance of aEvaluationRecordrecord class.- Parameters:
evaluationId- the value for theevaluationIdrecord componentevaluatorComponentId- the value for theevaluatorComponentIdrecord componentcontrolId- the value for thecontrolIdrecord componenttrigger- the value for thetriggerrecord componentinteractionId- the value for theinteractionIdrecord componentagentComponentId- the value for theagentComponentIdrecord componentoutcome- the value for theoutcomerecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
evaluation
The verdict this evaluation reached, or empty for an inconclusive or failed evaluation. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
evaluationId
Returns the value of theevaluationIdrecord component.- Returns:
- the value of the
evaluationIdrecord component
-
evaluatorComponentId
Returns the value of theevaluatorComponentIdrecord component.- Returns:
- the value of the
evaluatorComponentIdrecord component
-
controlId
Returns the value of thecontrolIdrecord component.- Returns:
- the value of the
controlIdrecord component
-
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-
agentComponentId
Returns the value of theagentComponentIdrecord component.- Returns:
- the value of the
agentComponentIdrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-