Преглед на файлове

omitempty log response variables (#3107)

Feroze Mohideen преди 3 години
родител
ревизия
3b8a8799a2
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      api/types/incident.go

+ 3 - 3
api/types/incident.go

@@ -145,9 +145,9 @@ type LogLine struct {
 }
 
 type GetLogResponse struct {
-	BackwardContinueTime *time.Time `json:"backward_continue_time"`
-	ForwardContinueTime  *time.Time `json:"forward_continue_time"`
-	Logs                 []LogLine  `json:"logs"`
+	BackwardContinueTime *time.Time `json:"backward_continue_time,omitempty"`
+	ForwardContinueTime  *time.Time `json:"forward_continue_time,omitempty"`
+	Logs                 []LogLine  `json:"logs,omitempty"`
 }
 
 type GetKubernetesEventRequest struct {