mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
37 lines
758 B
Go
37 lines
758 B
Go
package models
|
|
|
|
type SystemStats struct {
|
|
DashboardCount int64
|
|
UserCount int64
|
|
OrgCount int64
|
|
PlaylistCount int64
|
|
}
|
|
|
|
type DataSourceStats struct {
|
|
Count int
|
|
Type string
|
|
}
|
|
|
|
type GetSystemStatsQuery struct {
|
|
Result *SystemStats
|
|
}
|
|
|
|
type GetDataSourceStatsQuery struct {
|
|
Result []*DataSourceStats
|
|
}
|
|
|
|
type AdminStats struct {
|
|
UserCount int `json:"user_count"`
|
|
OrgCount int `json:"org_count"`
|
|
DashboardCount int `json:"dashboard_count"`
|
|
DbSnapshotCount int `json:"db_snapshot_count"`
|
|
DbTagCount int `json:"db_tag_count"`
|
|
DataSourceCount int `json:"data_source_count"`
|
|
PlaylistCount int `json:"playlist_count"`
|
|
StarredDbCount int `json:"starred_db_count"`
|
|
}
|
|
|
|
type GetAdminStatsQuery struct {
|
|
Result *AdminStats
|
|
}
|