Class AuditEntry

java.lang.Object
org.saidone.service.audit.AuditEntry

public class AuditEntry extends Object
Entity representing a single audit entry stored in MongoDB.

An entry records the timestamp of an audited event along with a small metadata map describing the request or response. The entry type and metadata keys are kept short using the constants defined in AuditEntryKeys so that the persisted documents remain compact.

  • Constructor Details

    • AuditEntry

      public AuditEntry()
      Creates a new AuditEntry with its timestamp set to the current instant. Other properties can be populated later before the entry is persisted via AuditService.