reporting

package
v0.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: MIT Imports: 7 Imported by: 29

Documentation

Overview

Sends anonymous reports to InfluxData

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled       bool          `toml:"enabled"`
	EnterpriseURL string        `toml:"enterprise-url"`
	StatsInterval toml.Duration `toml:"stats-interval"`
}

func NewConfig

func NewConfig() Config

type Service

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

Sends periodic information to Enterprise. If not registered with Enterprise just registers the server on startup and sends anonymous stats every 12 hours.

If registered with Enterprise also sends all expvar statistics at the Config.StatsInterval.

func NewService

func NewService(c Config, token string, l *log.Logger) *Service

func (*Service) Close

func (s *Service) Close() error

func (*Service) Open

func (s *Service) Open() error

Jump to

Keyboard shortcuts

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