Chore: Fix grafana live stats reset when sending usage stats (#39558)

This commit is contained in:
Tania B
2021-09-23 12:55:00 +03:00
committed by GitHub
parent 65d79d9a30
commit b9acdce837
6 changed files with 24 additions and 2 deletions

View File

@@ -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
}