2015-03-22 15:14:00 -04:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type SystemStats struct {
|
2017-08-09 10:36:41 +02:00
|
|
|
Dashboards int64
|
|
|
|
|
Datasources int64
|
|
|
|
|
Users int64
|
|
|
|
|
ActiveUsers int64
|
|
|
|
|
Orgs int64
|
|
|
|
|
Playlists int64
|
|
|
|
|
Alerts int64
|
2018-01-23 22:51:05 +01:00
|
|
|
Stars int64
|
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 {
|
2017-08-09 10:36:41 +02:00
|
|
|
Users int `json:"users"`
|
|
|
|
|
Orgs int `json:"orgs"`
|
|
|
|
|
Dashboards int `json:"dashboards"`
|
|
|
|
|
Snapshots int `json:"snapshots"`
|
|
|
|
|
Tags int `json:"tags"`
|
|
|
|
|
Datasources int `json:"datasources"`
|
|
|
|
|
Playlists int `json:"playlists"`
|
|
|
|
|
Stars int `json:"stars"`
|
|
|
|
|
Alerts int `json:"alerts"`
|
|
|
|
|
ActiveUsers int `json:"activeUsers"`
|
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
|
|
|
}
|