usage

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UsageReportApplication aligns with the usage-stats service endpoint defined
	// in github.com/grafana/usage-stats for synthetic monitoring agents
	UsageStatsApplication = "synthetic-monitoring-agent-usage-report"
	// Base Endpoint for usage stats
	ProdStatsEndpoint = "https://stats.grafana.org"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPReporter

type HTTPReporter struct {
	// contains filtered or unexported fields
}

HTTPReporter represents

func NewHTTPReporter

func NewHTTPReporter(endpoint string) *HTTPReporter

func (*HTTPReporter) ReportProbe

func (hr *HTTPReporter) ReportProbe(ctx context.Context, probe sm.Probe, features feature.Collection) error

ReportProbe creates a report from the probe and then sends the report to the stats api endpoint via the report method.

type NoOPReporter

type NoOPReporter struct{}

func NewNoOPReporter

func NewNoOPReporter() *NoOPReporter

func (*NoOPReporter) ReportProbe

func (r *NoOPReporter) ReportProbe(_ context.Context, _ sm.Probe, _ feature.Collection) error

type Reporter

type Reporter interface {
	ReportProbe(ctx context.Context, probe sm.Probe, features feature.Collection) error
}

Reporter represents a way of communicating reports to different backend systems.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL