stats.go 808 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package models
  2. type SystemStats struct {
  3. Dashboards int64
  4. Datasources int64
  5. Users int64
  6. ActiveUsers int64
  7. Orgs int64
  8. Playlists int64
  9. Alerts int64
  10. Stars int64
  11. }
  12. type DataSourceStats struct {
  13. Count int
  14. Type string
  15. }
  16. type GetSystemStatsQuery struct {
  17. Result *SystemStats
  18. }
  19. type GetDataSourceStatsQuery struct {
  20. Result []*DataSourceStats
  21. }
  22. type AdminStats struct {
  23. Users int `json:"users"`
  24. Orgs int `json:"orgs"`
  25. Dashboards int `json:"dashboards"`
  26. Snapshots int `json:"snapshots"`
  27. Tags int `json:"tags"`
  28. Datasources int `json:"datasources"`
  29. Playlists int `json:"playlists"`
  30. Stars int `json:"stars"`
  31. Alerts int `json:"alerts"`
  32. ActiveUsers int `json:"activeUsers"`
  33. }
  34. type GetAdminStatsQuery struct {
  35. Result *AdminStats
  36. }