Record Class AiAuditEvent
java.lang.Object
java.lang.Record
com.shaft.pilot.audit.AiAuditEvent
- Record Components:
timestamp- event timerequestId- request correlation identifierpurpose- request purposeprovider- provider identifiermodel- model identifierredactionSummary- safe redaction countsduration- elapsed durationstatus- normalized outcome
-
Constructor Summary
ConstructorsConstructorDescriptionAiAuditEvent(Instant timestamp, String requestId, String purpose, String provider, String model, String redactionSummary, Duration duration, AiResponseStatus status) Normalizes user-controlled metadata before it reaches logs. -
Method Summary
Modifier and TypeMethodDescriptionduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.provider()Returns the value of theproviderrecord component.purpose()Returns the value of thepurposerecord component.Returns the value of theredactionSummaryrecord component.Returns the value of therequestIdrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AiAuditEvent
-
-
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). -
timestamp
-
requestId
-
purpose
-
provider
-
model
-
redactionSummary
Returns the value of theredactionSummaryrecord component.- Returns:
- the value of the
redactionSummaryrecord component
-
duration
-
status
-