Просмотр исходного кода

omitempty log response variables (#3107)

Feroze Mohideen 3 лет назад
Родитель
Сommit
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 {