type
AuditEvent
Security-relevant application event metadata.
Properties
| Property | Type | Description |
|---|---|---|
Time | time.Time | When the event occurred. |
RequestID | string | Correlates the event with logs and observations. |
ClientIP | string | The resolved direct or trusted-forwarded client address. |
Action | string | The operation name, such as login, create, or delete. |
Collection | string | The affected collection slug when applicable. |
DocumentID | string | The affected document identity when applicable. |
ActorID | string | The authenticated document identity when available. |
ActorCollection | schema.CollectionSlug | Disambiguates 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
}