Record Class AuditEvent
java.lang.Object
java.lang.Record
ai.doctruth.spi.AuditEvent
A single audit event emitted by the library — extraction success, extraction failure,
citation-below-threshold, etc.
attributes is an open map for SIEM-side
categorisation (provider name, retry count, error code, field path).
kind convention: "<domain>.<verb>" — e.g. "extraction.success",
"extraction.failed", "citation.below_threshold".
Invariants: kind non-null and non-blank; at non-null;
attributes non-null (empty map allowed).
- Since:
- 0.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.Returns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuditEvent
-
-
Method Details
-
toString
-
hashCode
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
at
Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-
attributes
-