stats.go 798 B

123456789101112131415161718192021222324252627282930313233343536
  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. GrafanaAdminCount int `json:"grafana_admin_count"`
  27. }
  28. type GetAdminStatsQuery struct {
  29. Result *AdminStats
  30. }