2015-03-22 15:14:00 -04:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
type SystemStats struct {
|
2021-07-16 10:14:33 +02:00
|
|
|
Dashboards int64
|
|
|
|
|
Datasources int64
|
|
|
|
|
Users int64
|
|
|
|
|
ActiveUsers int64
|
2021-09-13 10:29:35 -04:00
|
|
|
DailyActiveUsers int64
|
2021-11-03 18:59:05 -03:00
|
|
|
MonthlyActiveUsers int64
|
2021-07-16 10:14:33 +02:00
|
|
|
Orgs int64
|
|
|
|
|
Playlists int64
|
|
|
|
|
Alerts int64
|
|
|
|
|
Stars int64
|
|
|
|
|
Snapshots int64
|
|
|
|
|
Teams int64
|
|
|
|
|
DashboardPermissions int64
|
|
|
|
|
FolderPermissions int64
|
|
|
|
|
Folders int64
|
|
|
|
|
ProvisionedDashboards int64
|
|
|
|
|
AuthTokens int64
|
2021-12-22 16:37:45 +00:00
|
|
|
APIKeys int64 `xorm:"api_keys"`
|
2021-07-16 10:14:33 +02:00
|
|
|
DashboardVersions int64
|
|
|
|
|
Annotations int64
|
|
|
|
|
AlertRules int64
|
|
|
|
|
LibraryPanels int64
|
|
|
|
|
LibraryVariables int64
|
|
|
|
|
DashboardsViewersCanEdit int64
|
|
|
|
|
DashboardsViewersCanAdmin int64
|
|
|
|
|
FoldersViewersCanEdit int64
|
|
|
|
|
FoldersViewersCanAdmin int64
|
2021-09-13 10:29:35 -04:00
|
|
|
Admins int64
|
|
|
|
|
Editors int64
|
|
|
|
|
Viewers int64
|
|
|
|
|
ActiveAdmins int64
|
|
|
|
|
ActiveEditors int64
|
|
|
|
|
ActiveViewers int64
|
|
|
|
|
ActiveSessions int64
|
|
|
|
|
DailyActiveAdmins int64
|
|
|
|
|
DailyActiveEditors int64
|
|
|
|
|
DailyActiveViewers int64
|
|
|
|
|
DailyActiveSessions int64
|
2022-05-06 10:21:55 +02:00
|
|
|
DataKeys int64
|
2022-05-23 13:13:55 +02:00
|
|
|
ActiveDataKeys int64
|
2022-06-23 12:02:57 -03:00
|
|
|
PublicDashboards 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
|
|
|
|
2018-05-25 16:00:15 +02:00
|
|
|
type DataSourceAccessStats struct {
|
|
|
|
|
Type string
|
|
|
|
|
Access string
|
|
|
|
|
Count int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetDataSourceAccessStatsQuery struct {
|
|
|
|
|
Result []*DataSourceAccessStats
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-06 21:03:09 +02:00
|
|
|
type NotifierUsageStats struct {
|
|
|
|
|
Type string
|
|
|
|
|
Count int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetAlertNotifierUsageStatsQuery struct {
|
|
|
|
|
Result []*NotifierUsageStats
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-24 11:01:33 -08:00
|
|
|
type AdminStats struct {
|
2021-09-13 10:29:35 -04:00
|
|
|
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"`
|
2021-11-03 18:59:05 -03:00
|
|
|
MonthlyActiveUsers int64 `json:"monthlyActiveUsers"`
|
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
|
|
|
}
|
2018-05-25 14:33:37 +02:00
|
|
|
|
|
|
|
|
type SystemUserCountStats struct {
|
|
|
|
|
Count int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetSystemUserCountStatsQuery struct {
|
|
|
|
|
Result *SystemUserCountStats
|
|
|
|
|
}
|
2020-03-05 12:34:44 +01:00
|
|
|
|
2020-08-24 11:23:14 +02:00
|
|
|
type UserStats struct {
|
|
|
|
|
Users int64
|
|
|
|
|
Admins int64
|
|
|
|
|
Editors int64
|
|
|
|
|
Viewers int64
|
2020-03-05 12:34:44 +01:00
|
|
|
}
|