mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
add daily active counts to stats (#38842)
* add daily active counts to stats * standardize on int64, update tests
This commit is contained in:
+34
-25
@@ -5,6 +5,7 @@ type SystemStats struct {
|
||||
Datasources int64
|
||||
Users int64
|
||||
ActiveUsers int64
|
||||
DailyActiveUsers int64
|
||||
Orgs int64
|
||||
Playlists int64
|
||||
Alerts int64
|
||||
@@ -25,14 +26,17 @@ type SystemStats struct {
|
||||
DashboardsViewersCanAdmin int64
|
||||
FoldersViewersCanEdit int64
|
||||
FoldersViewersCanAdmin int64
|
||||
|
||||
Admins int
|
||||
Editors int
|
||||
Viewers int
|
||||
ActiveAdmins int
|
||||
ActiveEditors int
|
||||
ActiveViewers int
|
||||
ActiveSessions int
|
||||
Admins int64
|
||||
Editors int64
|
||||
Viewers int64
|
||||
ActiveAdmins int64
|
||||
ActiveEditors int64
|
||||
ActiveViewers int64
|
||||
ActiveSessions int64
|
||||
DailyActiveAdmins int64
|
||||
DailyActiveEditors int64
|
||||
DailyActiveViewers int64
|
||||
DailyActiveSessions int64
|
||||
}
|
||||
|
||||
type DataSourceStats struct {
|
||||
@@ -68,23 +72,28 @@ type GetAlertNotifierUsageStatsQuery struct {
|
||||
}
|
||||
|
||||
type AdminStats struct {
|
||||
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"`
|
||||
Users int `json:"users"`
|
||||
Admins int `json:"admins"`
|
||||
Editors int `json:"editors"`
|
||||
Viewers int `json:"viewers"`
|
||||
ActiveUsers int `json:"activeUsers"`
|
||||
ActiveAdmins int `json:"activeAdmins"`
|
||||
ActiveEditors int `json:"activeEditors"`
|
||||
ActiveViewers int `json:"activeViewers"`
|
||||
ActiveSessions int `json:"activeSessions"`
|
||||
Orgs int64 `json:"orgs"`
|
||||
Dashboards int64 `json:"dashboards"`
|
||||
Snapshots int64 `json:"snapshots"`
|
||||
Tags int64 `json:"tags"`
|
||||
Datasources int64 `json:"datasources"`
|
||||
Playlists int64 `json:"playlists"`
|
||||
Stars int64 `json:"stars"`
|
||||
Alerts int64 `json:"alerts"`
|
||||
Users int64 `json:"users"`
|
||||
Admins int64 `json:"admins"`
|
||||
Editors int64 `json:"editors"`
|
||||
Viewers int64 `json:"viewers"`
|
||||
ActiveUsers int64 `json:"activeUsers"`
|
||||
ActiveAdmins int64 `json:"activeAdmins"`
|
||||
ActiveEditors int64 `json:"activeEditors"`
|
||||
ActiveViewers int64 `json:"activeViewers"`
|
||||
ActiveSessions int64 `json:"activeSessions"`
|
||||
DailyActiveUsers int64 `json:"dailyActiveUsers"`
|
||||
DailyActiveAdmins int64 `json:"dailyActiveAdmins"`
|
||||
DailyActiveEditors int64 `json:"dailyActiveEditors"`
|
||||
DailyActiveViewers int64 `json:"dailyActiveViewers"`
|
||||
DailyActiveSessions int64 `json:"dailyActiveSessions"`
|
||||
}
|
||||
|
||||
type GetAdminStatsQuery struct {
|
||||
|
||||
Reference in New Issue
Block a user