app

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UAAAddr         string        `env:"UAA_ADDR,         required"`
	CAPIAddr        string        `env:"CAPI_ADDR,        required"`
	AccumulatorAddr string        `env:"ACCUMULATOR_ADDR, required"`
	ClientID        string        `env:"CLIENT_ID,        required"`
	ClientSecret    string        `env:"CLIENT_SECRET,    required, noreport"`
	DatadogAPIKey   string        `env:"DATADOG_API_KEY,  required"`
	SkipCertVerify  bool          `env:"SKIP_CERT_VERIFY"`
	ReportInterval  time.Duration `env:"REPORT_INTERVAL"`
	ReporterHost    string        `env:"REPORTER_HOST"`
	ReportLimit     int           `env:"REPORT_LIMIT"`

	AppInfoCacheTTL time.Duration `env:"APP_INFO_CACHE_TTL"`

	TLSConfig *tls.Config
}

Config stores configuration data for the accumulator.

func LoadConfig

func LoadConfig() Config

LoadConfig loads the configuration settings from the current environment.

type Reporter

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

Reporter is the constructor for the datadog reporter application.

func NewReporter

func NewReporter(cfg Config) *Reporter

NewReporter configures and returns a new Reporter

func (*Reporter) Run

func (r *Reporter) Run()

Run starts the datadog reporter. This is a blocking method call.

Jump to

Keyboard shortcuts

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