فهرست منبع

omit empty fix

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer 2 سال پیش
والد
کامیت
7816be0154
1فایلهای تغییر یافته به همراه14 افزوده شده و 14 حذف شده
  1. 14 14
      pkg/customcost/status.go

+ 14 - 14
pkg/customcost/status.go

@@ -9,18 +9,18 @@ import (
 // Status gives the details and metadata of a CustomCost integration
 type Status struct {
 	Enabled           bool                       `json:"enabled"`
-	Key               string                     `json:"key,omitempty""`
-	Source            string                     `json:"source,omitempty""`
-	Provider          string                     `json:"provider,omitempty""`
-	Active            bool                       `json:"active,omitempty""`
-	Valid             bool                       `json:"valid,omitempty""`
-	LastRun           time.Time                  `json:"lastRun,omitempty""`
-	NextRun           time.Time                  `json:"nextRun,omitempty""`
-	RefreshRateDaily  string                     `json:"RefreshRateDaily,omitempty""`
-	RefreshRateHourly string                     `json:"RefreshRateHourly,omitempty""`
-	Created           time.Time                  `json:"created,omitempty""`
-	Runs              int                        `json:"runs,omitempty""`
-	CoverageHourly    map[string]opencost.Window `json:"coverageHourly,omitempty""`
-	CoverageDaily     map[string]opencost.Window `json:"coverageDaily,omitempty""`
-	ConnectionStatus  string                     `json:"connectionStatus,omitempty""`
+	Key               string                     `json:"key,omitempty"`
+	Source            string                     `json:"source,omitempty"`
+	Provider          string                     `json:"provider,omitempty"`
+	Active            bool                       `json:"active,omitempty"`
+	Valid             bool                       `json:"valid,omitempty"`
+	LastRun           time.Time                  `json:"lastRun,omitempty"`
+	NextRun           time.Time                  `json:"nextRun,omitempty"`
+	RefreshRateDaily  string                     `json:"RefreshRateDaily,omitempty"`
+	RefreshRateHourly string                     `json:"RefreshRateHourly,omitempty"`
+	Created           time.Time                  `json:"created,omitempty"`
+	Runs              int                        `json:"runs,omitempty"`
+	CoverageHourly    map[string]opencost.Window `json:"coverageHourly,omitempty"`
+	CoverageDaily     map[string]opencost.Window `json:"coverageDaily,omitempty"`
+	ConnectionStatus  string                     `json:"connectionStatus,omitempty"`
 }