|
|
@@ -4,24 +4,23 @@ import (
|
|
|
"time"
|
|
|
|
|
|
"github.com/opencost/opencost/core/pkg/opencost"
|
|
|
- cloudconfig "github.com/opencost/opencost/pkg/cloud"
|
|
|
)
|
|
|
|
|
|
-// Status gives the details and metadata of a CloudCost integration
|
|
|
+// Status gives the details and metadata of a CustomCost integration
|
|
|
type Status struct {
|
|
|
- Key string `json:"key"`
|
|
|
- Source string `json:"source"`
|
|
|
- Provider string `json:"provider"`
|
|
|
- Active bool `json:"active"`
|
|
|
- Valid bool `json:"valid"`
|
|
|
- LastRun time.Time `json:"lastRun"`
|
|
|
- NextRun time.Time `json:"nextRun"`
|
|
|
- RefreshRateDaily string `json:"RefreshRateDaily"`
|
|
|
- RefreshRateHourly string `json:"RefreshRateHourly"`
|
|
|
- Created time.Time `json:"created"`
|
|
|
- Runs int `json:"runs"`
|
|
|
- CoverageHourly map[string]opencost.Window `json:"coverageHourly"`
|
|
|
- CoverageDaily map[string]opencost.Window `json:"coverageDaily"`
|
|
|
- ConnectionStatus string `json:"connectionStatus"`
|
|
|
- Config cloudconfig.Config `json:"config"`
|
|
|
+ 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""`
|
|
|
}
|