mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
3ce99bca66
as noted, sessions might not be a good name for this metrics. while devices would be a better name for users I think we should align the name with the code as much as possible. The ui listing all auth_tokens per user should probarbly say "devices" instead
77 lines
1.5 KiB
Go
77 lines
1.5 KiB
Go
package models
|
|
|
|
type SystemStats struct {
|
|
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
|
|
AuthTokens int64
|
|
}
|
|
|
|
type DataSourceStats struct {
|
|
Count int
|
|
Type string
|
|
}
|
|
|
|
type GetSystemStatsQuery struct {
|
|
Result *SystemStats
|
|
}
|
|
|
|
type GetDataSourceStatsQuery struct {
|
|
Result []*DataSourceStats
|
|
}
|
|
|
|
type DataSourceAccessStats struct {
|
|
Type string
|
|
Access string
|
|
Count int64
|
|
}
|
|
|
|
type GetDataSourceAccessStatsQuery struct {
|
|
Result []*DataSourceAccessStats
|
|
}
|
|
|
|
type NotifierUsageStats struct {
|
|
Type string
|
|
Count int64
|
|
}
|
|
|
|
type GetAlertNotifierUsageStatsQuery struct {
|
|
Result []*NotifierUsageStats
|
|
}
|
|
|
|
type AdminStats struct {
|
|
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"`
|
|
}
|
|
|
|
type GetAdminStatsQuery struct {
|
|
Result *AdminStats
|
|
}
|
|
|
|
type SystemUserCountStats struct {
|
|
Count int64
|
|
}
|
|
|
|
type GetSystemUserCountStatsQuery struct {
|
|
Result *SystemUserCountStats
|
|
}
|