From 044d1f77c3a723404d1bb79a1a408997c2ae63ac Mon Sep 17 00:00:00 2001 From: James Espinosa Date: Thu, 6 Aug 2020 16:59:03 -0700 Subject: [PATCH] Add missing new/oldValueJson fields (#514) --- auditlogs.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/auditlogs.go b/auditlogs.go index 84a985469bc..ad17d4df1c3 100644 --- a/auditlogs.go +++ b/auditlogs.go @@ -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