Record Class SkillAuditLog.Entry
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.curator.SkillAuditLog.Entry
- Enclosing class:
- SkillAuditLog
public static record SkillAuditLog.Entry(Instant ts, String actor, String op, String target, String decision, String scanVerdict, String beforeHash, String afterHash, Map<String,String> ctx, Map<String,Object> extra)
extends Record
A single audit row.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.Returns the value of theafterHashrecord component.Returns the value of thebeforeHashrecord component.ctx()Returns the value of thectxrecord component.decision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.extra()Returns the value of theextrarecord component.final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.Returns the value of thescanVerdictrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.ts()Returns the value of thetsrecord component.
-
Constructor Details
-
Entry
public Entry(Instant ts, String actor, String op, String target, String decision, String scanVerdict, String beforeHash, String afterHash, Map<String, String> ctx, Map<String, Object> extra) Creates an instance of aEntryrecord class.- Parameters:
ts- the value for thetsrecord componentactor- the value for theactorrecord componentop- the value for theoprecord componenttarget- the value for thetargetrecord componentdecision- the value for thedecisionrecord componentscanVerdict- the value for thescanVerdictrecord componentbeforeHash- the value for thebeforeHashrecord componentafterHash- the value for theafterHashrecord componentctx- the value for thectxrecord componentextra- the value for theextrarecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
ts
Returns the value of thetsrecord component.- Returns:
- the value of the
tsrecord component
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
scanVerdict
Returns the value of thescanVerdictrecord component.- Returns:
- the value of the
scanVerdictrecord component
-
beforeHash
Returns the value of thebeforeHashrecord component.- Returns:
- the value of the
beforeHashrecord component
-
afterHash
Returns the value of theafterHashrecord component.- Returns:
- the value of the
afterHashrecord component
-
ctx
Returns the value of thectxrecord component.- Returns:
- the value of the
ctxrecord component
-
extra
Returns the value of theextrarecord component.- Returns:
- the value of the
extrarecord component
-