mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
9cdb6b07c7
* move original stats service into a separate package * add stats service to wire * move GetAdminStats * switch to using stats.Service * add missing package * fix api tests
17 lines
644 B
Go
17 lines
644 B
Go
package stats
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
)
|
|
|
|
type Service interface {
|
|
GetAdminStats(ctx context.Context, query *models.GetAdminStatsQuery) error
|
|
GetAlertNotifiersUsageStats(ctx context.Context, query *models.GetAlertNotifierUsageStatsQuery) error
|
|
GetDataSourceStats(ctx context.Context, query *models.GetDataSourceStatsQuery) error
|
|
GetDataSourceAccessStats(ctx context.Context, query *models.GetDataSourceAccessStatsQuery) error
|
|
GetSystemStats(ctx context.Context, query *models.GetSystemStatsQuery) error
|
|
GetSystemUserCountStats(ctx context.Context, query *models.GetSystemUserCountStatsQuery) error
|
|
}
|