AuditLogEntryData
public struct AuditLogEntryData : Content
One entry from the server’s audit log. Returned by: GET /api/v3/admin/auditlog
-
The ID of this log entry.
Declaration
Swift
var id: UUID -
What happened.
Declaration
Swift
var eventType: AuditEventType -
Human-readable name for
eventType.Declaration
Swift
var eventLabel: String -
What it happened to, e.g.
settings,twarrt:1234,role:communitysupport.Declaration
Swift
var subject: String -
Event-specific details; the keys depend on
eventType.Declaration
Swift
var details: [String : String] -
When it happened.
Declaration
Swift
var timestamp: Date -
The user who did it. Nil for events the server initiated itself, like auto-quarantine (or if the user’s account no longer exists).
Declaration
Swift
var actor: UserHeader? -
The user the event was about, if any.
Declaration
Swift
var targetUser: UserHeader? -
Declaration
Swift
init(_ entry: AuditLogEntry, on req: Request) throws
View on GitHub