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 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 a Entry record class.
      Parameters:
      ts - the value for the ts record component
      actor - the value for the actor record component
      op - the value for the op record component
      target - the value for the target record component
      decision - the value for the decision record component
      scanVerdict - the value for the scanVerdict record component
      beforeHash - the value for the beforeHash record component
      afterHash - the value for the afterHash record component
      ctx - the value for the ctx record component
      extra - the value for the extra record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • ts

      public Instant ts()
      Returns the value of the ts record component.
      Returns:
      the value of the ts record component
    • actor

      public String actor()
      Returns the value of the actor record component.
      Returns:
      the value of the actor record component
    • op

      public String op()
      Returns the value of the op record component.
      Returns:
      the value of the op record component
    • target

      public String target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • decision

      public String decision()
      Returns the value of the decision record component.
      Returns:
      the value of the decision record component
    • scanVerdict

      public String scanVerdict()
      Returns the value of the scanVerdict record component.
      Returns:
      the value of the scanVerdict record component
    • beforeHash

      public String beforeHash()
      Returns the value of the beforeHash record component.
      Returns:
      the value of the beforeHash record component
    • afterHash

      public String afterHash()
      Returns the value of the afterHash record component.
      Returns:
      the value of the afterHash record component
    • ctx

      public Map<String,String> ctx()
      Returns the value of the ctx record component.
      Returns:
      the value of the ctx record component
    • extra

      public Map<String,Object> extra()
      Returns the value of the extra record component.
      Returns:
      the value of the extra record component