Skip to content

Commit

Permalink
Merge pull request #1874 from an1245/main
Browse files Browse the repository at this point in the history
New Audit Event Fields
  • Loading branch information
svanharmelen committed Feb 5, 2024
2 parents 997404b + a9f900a commit d89a43d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions audit_events.go
Expand Up @@ -16,6 +16,7 @@ type AuditEvent struct {
EntityType string `json:"entity_type"`
Details AuditEventDetails `json:"details"`
CreatedAt *time.Time `json:"created_at"`
EventType string `json:"event_type"`
}

// AuditEventDetails represents the details portion of an audit event for
Expand All @@ -33,6 +34,8 @@ type AuditEventDetails struct {
Remove string `json:"remove"`
CustomMessage string `json:"custom_message"`
AuthorName string `json:"author_name"`
AuthorEmail string `json:"author_email"`
AuthorClass string `json:"author_class"`
TargetID interface{} `json:"target_id"`
TargetType string `json:"target_type"`
TargetDetails string `json:"target_details"`
Expand Down

0 comments on commit d89a43d

Please sign in to comment.