mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
add additional usage stats metrics
nr of folders nr of folder permissions nr of dashboard permissions nr of snapshots nr of teams nr of provisioned dashboards
This commit is contained in:
+22
-8
@@ -1,14 +1,20 @@
|
||||
package models
|
||||
|
||||
type SystemStats struct {
|
||||
Dashboards int64
|
||||
Datasources int64
|
||||
Users int64
|
||||
ActiveUsers int64
|
||||
Orgs int64
|
||||
Playlists int64
|
||||
Alerts int64
|
||||
Stars int64
|
||||
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
|
||||
}
|
||||
|
||||
type DataSourceStats struct {
|
||||
@@ -40,3 +46,11 @@ type AdminStats struct {
|
||||
type GetAdminStatsQuery struct {
|
||||
Result *AdminStats
|
||||
}
|
||||
|
||||
type SystemUserCountStats struct {
|
||||
Count int64
|
||||
}
|
||||
|
||||
type GetSystemUserCountStatsQuery struct {
|
||||
Result *SystemUserCountStats
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user