AuditEventType

enum AuditEventType : String, Codable, CaseIterable

The kinds of events recorded in the AuditLogEntry table. The audit log covers administrative and system events that don’t already have a log of their own–moderator actions live in ModeratorAction, and Community Support reports in CommunitySupportAction.

Stored as a string, so adding cases doesn’t require a migration. Don’t rename existing cases.

  • An admin changed server settings and/or enabled or disabled features. details holds the changes.

    Declaration

    Swift

    case settingsChanged
  • The report threshold was reached and the server quarantined a piece of content on its own. There’s no actor.

    Declaration

    Swift

    case contentAutoQuarantined
  • A user was given a role (e.g. communitysupport). details["role"] names it.

    Declaration

    Swift

    case roleGranted
  • A user’s role was removed. details["role"] names it.

    Declaration

    Swift

    case roleRevoked
  • A TwitarrTeam member cleared all the auth rate limit lockouts. details["cleared"] is the number cleared.

    Declaration

    Swift

    case authRateLimitsCleared
  • A human-readable name for this event, e.g. for display in a report.

    Declaration

    Swift

    func visibleName() -> String