2015-03-22 15:14:00 -04:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type SystemStats struct {
|
|
|
|
|
DashboardCount int
|
|
|
|
|
UserCount int
|
|
|
|
|
OrgCount int
|
2016-01-25 21:39:04 +01:00
|
|
|
PlaylistCount int
|
2015-03-22 15:14:00 -04:00
|
|
|
}
|
|
|
|
|
|
2015-09-29 13:47:56 +02:00
|
|
|
type DataSourceStats struct {
|
|
|
|
|
Count int
|
|
|
|
|
Type string
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-22 15:14:00 -04:00
|
|
|
type GetSystemStatsQuery struct {
|
|
|
|
|
Result *SystemStats
|
|
|
|
|
}
|
2015-09-29 13:47:56 +02:00
|
|
|
|
|
|
|
|
type GetDataSourceStatsQuery struct {
|
|
|
|
|
Result []*DataSourceStats
|
|
|
|
|
}
|
2016-01-24 11:01:33 -08:00
|
|
|
|
|
|
|
|
type AdminStats struct {
|
2016-04-11 18:16:35 -04:00
|
|
|
UserCount int `json:"user_count"`
|
|
|
|
|
OrgCount int `json:"org_count"`
|
|
|
|
|
DashboardCount int `json:"dashboard_count"`
|
|
|
|
|
DbSnapshotCount int `json:"db_snapshot_count"`
|
|
|
|
|
DbTagCount int `json:"db_tag_count"`
|
|
|
|
|
DataSourceCount int `json:"data_source_count"`
|
|
|
|
|
PlaylistCount int `json:"playlist_count"`
|
|
|
|
|
StarredDbCount int `json:"starred_db_count"`
|
2016-01-24 11:01:33 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetAdminStatsQuery struct {
|
2016-01-24 21:18:17 -08:00
|
|
|
Result *AdminStats
|
2016-01-24 11:01:33 -08:00
|
|
|
}
|