Преглед изворни кода

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 {