2015-03-22 14:14:00 -05:00
|
|
|
package models
|
|
|
|
|
|
|
|
type SystemStats struct {
|
2018-05-25 07:33:37 -05:00
|
|
|
Dashboards int64
|
|
|
|
Datasources int64
|
|
|
|
Users int64
|
|
|
|
ActiveUsers int64
|
|
|
|
Orgs int64
|
|
|
|
Playlists int64
|
|
|
|
Alerts int64
|
|
|
|
Stars int64
|
|
|
|
Snapshots int64
|
|
|
|
Teams int64
|
|
|
|
DashboardPermissions int64
|
|
|
|
FolderPermissions int64
|
|
|
|
Folders int64
|
|
|
|
ProvisionedDashboards int64
|
2015-03-22 14:14:00 -05:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2018-05-25 09:00:15 -05:00
|
|
|
type DataSourceAccessStats struct {
|
|
|
|
Type string
|
|
|
|
Access string
|
|
|
|
Count int64
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetDataSourceAccessStatsQuery struct {
|
|
|
|
Result []*DataSourceAccessStats
|
|
|
|
}
|
|
|
|
|
2016-01-24 13:01:33 -06:00
|
|
|
type AdminStats struct {
|
2017-08-09 03:36:41 -05: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 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
|
|
|
}
|
2018-05-25 07:33:37 -05:00
|
|
|
|
|
|
|
type SystemUserCountStats struct {
|
|
|
|
Count int64
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetSystemUserCountStatsQuery struct {
|
|
|
|
Result *SystemUserCountStats
|
|
|
|
}
|