mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
43 lines
808 B
Go
43 lines
808 B
Go
package models
|
|
|
|
type SystemStats struct {
|
|
Dashboards int64
|
|
Datasources int64
|
|
Users int64
|
|
ActiveUsers int64
|
|
Orgs int64
|
|
Playlists int64
|
|
Alerts int64
|
|
Stars int64
|
|
}
|
|
|
|
type DataSourceStats struct {
|
|
Count int
|
|
Type string
|
|
}
|
|
|
|
type GetSystemStatsQuery struct {
|
|
Result *SystemStats
|
|
}
|
|
|
|
type GetDataSourceStatsQuery struct {
|
|
Result []*DataSourceStats
|
|
}
|
|
|
|
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
|
|
}
|