Merge branch '8784-dir-listings'
[arvados.git] / sdk / go / arvados / log.go
index ef56e85ae7b0e8711b38a65090823d182b994415..6f72bf7c6c9f46d931aaafbe9c4f8594ac470984 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
 package arvados
 
 import (
@@ -6,12 +10,13 @@ import (
 
 // Log is an arvados#log record
 type Log struct {
-       ID              uint64                 `json:"id"`
-       UUID            string                 `json:"uuid"`
-       ObjectUUID      string                 `json:"object_uuid"`
-       ObjectOwnerUUID string                 `json:"object_owner_uuid"`
-       EventType       string                 `json:"event_type"`
-       Properties      map[string]interface{} `json:"properties"`
+       ID              uint64                 `json:"id,omitempty"`
+       UUID            string                 `json:"uuid,omitempty"`
+       ObjectUUID      string                 `json:"object_uuid,omitempty"`
+       ObjectOwnerUUID string                 `json:"object_owner_uuid,omitempty"`
+       EventType       string                 `json:"event_type,omitempty"`
+       EventAt         *time.Time             `json:"event,omitempty"`
+       Properties      map[string]interface{} `json:"properties,omitempty"`
        CreatedAt       *time.Time             `json:"created_at,omitempty"`
 }