Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentSeed ¶
type AgentSeed struct {
UID string `json:"UID"`
CreatedAt time.Time `json:"created_at"`
Version string `json:"version"`
}
AgentSeed identifies a unique agent
type Report ¶
type Report struct {
UsageStatsID string `json:"usageStatsId"`
CreatedAt time.Time `json:"createdAt"`
Interval time.Time `json:"interval"`
Version string `json:"version"`
Metrics map[string]interface{} `json:"metrics"`
Os string `json:"os"`
Arch string `json:"arch"`
}
Report is the payload to be sent to stats.grafana.org
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter holds the agent seed information and sends report of usage
func NewReporter ¶
func NewReporter(logger log.Logger, cfg *config.Config) (*Reporter, error)
NewReporter creates a Reporter that will send periodically reports to grafana.com
Click to show internal directories.
Click to hide internal directories.