type

AuditEvent

Security-relevant application event metadata.

Properties

PropertyTypeDescription
Timetime.TimeWhen the event occurred.
RequestIDstringCorrelates the event with logs and observations.
ClientIPstringThe resolved direct or trusted-forwarded client address.
ActionstringThe operation name, such as login, create, or delete.
CollectionstringThe affected collection slug when applicable.
DocumentIDstringThe affected document identity when applicable.
ActorIDstringThe authenticated document identity when available.
ActorCollectionschema.CollectionSlugDisambiguates ActorID across auth collections.

Full signature

type AuditEvent struct { // Time is when the event occurred. Time time.Time // RequestID correlates the event with logs and observations. RequestID string // ClientIP is the resolved direct or trusted-forwarded client address. ClientIP string // Action names the operation, such as login, create, or delete. Action string // Collection is the affected collection slug when applicable. Collection string // DocumentID is the affected document identity when applicable. DocumentID string // ActorID is the authenticated document identity when available. ActorID string // ActorCollection disambiguates ActorID across auth collections. ActorCollection schema.CollectionSlug }

Source core/http.go:109