grafana/pkg/models/stats.go

37 lines
750 B
Go
Raw Normal View History

2015-03-22 14:14:00 -05:00
package models
type SystemStats struct {
DashboardCount int
UserCount int
OrgCount int
2016-01-25 14:39:04 -06:00
PlaylistCount int
2015-03-22 14:14:00 -05:00
}
type DataSourceStats struct {
Count int
Type string
}
2015-03-22 14:14:00 -05:00
type GetSystemStatsQuery struct {
Result *SystemStats
}
type GetDataSourceStatsQuery struct {
Result []*DataSourceStats
}
2016-01-24 13:01:33 -06:00
type AdminStats struct {
2016-04-11 17:16:35 -05:00
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"`
2016-01-24 13:01:33 -06:00
}
type GetAdminStatsQuery struct {
2016-01-24 23:18:17 -06:00
Result *AdminStats
2016-01-24 13:01:33 -06:00
}