Skip to content

Commit

Permalink
Add missing new/oldValueJson fields (cloudflare#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesejr authored Aug 6, 2020
1 parent d63bee8 commit 044d1f7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions auditlogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@ type AuditLogResource struct {

// AuditLog is an resource that represents an update in the cloudflare dash
type AuditLog struct {
Action AuditLogAction `json:"action"`
Actor AuditLogActor `json:"actor"`
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata"`
NewValue string `json:"newValue"`
OldValue string `json:"oldValue"`
Owner AuditLogOwner `json:"owner"`
Resource AuditLogResource `json:"resource"`
When time.Time `json:"when"`
Action AuditLogAction `json:"action"`
Actor AuditLogActor `json:"actor"`
ID string `json:"id"`
Metadata map[string]interface{} `json:"metadata"`
NewValue string `json:"newValue"`
NewValueJSON map[string]interface{} `json:"newValueJson"`
OldValue string `json:"oldValue"`
OldValueJSON map[string]interface{} `json:"oldValueJson"`
Owner AuditLogOwner `json:"owner"`
Resource AuditLogResource `json:"resource"`
When time.Time `json:"when"`
}

// AuditLogResponse is the response returned from the cloudflare v4 api
Expand Down

0 comments on commit 044d1f7

Please sign in to comment.