stats.go 822 B

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