2015-03-22 14:14:00 -05:00
|
|
|
package models
|
|
|
|
|
|
|
|
type SystemStats struct {
|
|
|
|
DashboardCount int
|
|
|
|
UserCount int
|
|
|
|
OrgCount int
|
|
|
|
}
|
|
|
|
|
2015-09-29 06:47:56 -05:00
|
|
|
type DataSourceStats struct {
|
|
|
|
Count int
|
|
|
|
Type string
|
|
|
|
}
|
|
|
|
|
2015-03-22 14:14:00 -05:00
|
|
|
type GetSystemStatsQuery struct {
|
|
|
|
Result *SystemStats
|
|
|
|
}
|
2015-09-29 06:47:56 -05:00
|
|
|
|
|
|
|
type GetDataSourceStatsQuery struct {
|
|
|
|
Result []*DataSourceStats
|
|
|
|
}
|
2016-01-24 13:01:33 -06:00
|
|
|
|
|
|
|
type AdminStats struct {
|
2016-01-24 23:18:17 -06: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 13:01:33 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetAdminStatsQuery struct {
|
2016-01-24 23:18:17 -06:00
|
|
|
Result *AdminStats
|
2016-01-24 13:01:33 -06:00
|
|
|
}
|