status.go 1.0 KB

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