mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Fix grafana live stats reset when sending usage stats (#39558)
This commit is contained in:
@@ -17,8 +17,11 @@ type Report struct {
|
||||
|
||||
type MetricsFunc func() (map[string]interface{}, error)
|
||||
|
||||
type SendReportCallbackFunc func()
|
||||
|
||||
type Service interface {
|
||||
GetUsageReport(context.Context) (Report, error)
|
||||
RegisterMetricsFunc(MetricsFunc)
|
||||
RegisterSendReportCallback(SendReportCallbackFunc)
|
||||
ShouldBeReported(string) bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user