stats.go 750 B

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