Documentation ¶
Index ¶
- type UsageStats
- func (uss *UsageStats) GetUsageReport(ctx context.Context) (usagestats.Report, error)
- func (uss *UsageStats) GetUsageStatsId(ctx context.Context) string
- func (uss *UsageStats) RegisterMetricsFunc(fn usagestats.MetricsFunc)
- func (uss *UsageStats) RegisterSendReportCallback(c usagestats.SendReportCallbackFunc)
- func (uss *UsageStats) Run(ctx context.Context) error
- func (uss *UsageStats) SetReadyToReport(context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsageStats ¶
type UsageStats struct { Cfg *setting.Cfg RouteRegister routing.RouteRegister // contains filtered or unexported fields }
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, kvStore kvstore.KVStore, routeRegister routing.RouteRegister, tracer tracing.Tracer, accesscontrol ac.AccessControl, bundleRegistry supportbundles.Service, ) (*UsageStats, error)
func (*UsageStats) GetUsageReport ¶
func (uss *UsageStats) GetUsageReport(ctx context.Context) (usagestats.Report, error)
func (*UsageStats) GetUsageStatsId ¶
func (uss *UsageStats) GetUsageStatsId(ctx context.Context) string
func (*UsageStats) RegisterMetricsFunc ¶
func (uss *UsageStats) RegisterMetricsFunc(fn usagestats.MetricsFunc)
func (*UsageStats) RegisterSendReportCallback ¶
func (uss *UsageStats) RegisterSendReportCallback(c usagestats.SendReportCallbackFunc)
func (*UsageStats) SetReadyToReport ¶
func (uss *UsageStats) SetReadyToReport(context.Context)
Click to show internal directories.
Click to hide internal directories.