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
Click to show internal directories.
Click to hide internal directories.