stats.go 730 B

1234567891011121314151617181920212223242526272829303132333435
  1. package models
  2. type SystemStats struct {
  3. DashboardCount int
  4. UserCount int
  5. OrgCount int
  6. }
  7. type DataSourceStats struct {
  8. Count int
  9. Type string
  10. }
  11. type GetSystemStatsQuery struct {
  12. Result *SystemStats
  13. }
  14. type GetDataSourceStatsQuery struct {
  15. Result []*DataSourceStats
  16. }
  17. type AdminStats struct {
  18. UserCount int `json:"user_count"`
  19. OrgCount int `json:"org_count"`
  20. DashboardCount int `json:"dashboard_count"`
  21. DbSnapshotCount int `json:"db_snapshot_count"`
  22. DbTagCount int `json:"db_tag_count"`
  23. DataSourceCount int `json:"data_source_count"`
  24. PlaylistCount int `json:"playlist_count"`
  25. StarredDbCount int `json:"starred_db_count"`
  26. }
  27. type GetAdminStatsQuery struct {
  28. Result *AdminStats
  29. }