stats.go 789 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. }
  11. type DataSourceStats struct {
  12. Count int
  13. Type string
  14. }
  15. type GetSystemStatsQuery struct {
  16. Result *SystemStats
  17. }
  18. type GetDataSourceStatsQuery struct {
  19. Result []*DataSourceStats
  20. }
  21. type AdminStats struct {
  22. Users int `json:"users"`
  23. Orgs int `json:"orgs"`
  24. Dashboards int `json:"dashboards"`
  25. Snapshots int `json:"snapshots"`
  26. Tags int `json:"tags"`
  27. Datasources int `json:"datasources"`
  28. Playlists int `json:"playlists"`
  29. Stars int `json:"stars"`
  30. Alerts int `json:"alerts"`
  31. ActiveUsers int `json:"activeUsers"`
  32. }
  33. type GetAdminStatsQuery struct {
  34. Result *AdminStats
  35. }