2
0

status.go 890 B

123456789101112131415161718192021222324
  1. package cloudcost
  2. import (
  3. "time"
  4. cloudconfig "github.com/opencost/opencost/pkg/cloud"
  5. )
  6. // Status gives the details and metadata of a CloudCost integration
  7. type Status struct {
  8. Key string `json:"key"`
  9. Source string `json:"source"`
  10. Provider string `json:"provider"`
  11. Active bool `json:"active"`
  12. Valid bool `json:"valid"`
  13. LastRun time.Time `json:"lastRun"`
  14. NextRun time.Time `json:"nextRun"`
  15. RefreshRate string `json:"refreshRate"`
  16. Created time.Time `json:"created"`
  17. Runs int `json:"runs"`
  18. Coverage string `json:"coverage"`
  19. ConnectionStatus string `json:"connectionStatus"`
  20. Config cloudconfig.Config `json:"config"`
  21. }