Versions in this module Expand all Collapse all v0 v0.2.0 Apr 19, 2016 Changes in this version + const DefaultPollInterval + var LogLevel = LogError + var Logger = l.New(os.Stderr, "newrelic", l.LstdFlags) + func Log(level LoggingLevel, format string, a ...interface{}) + type Client struct + HTTPClient *http.Client + License string + Plugins []*Plugin + PollInterval time.Duration + func New(license string) *Client + func (c *Client) AddPlugin(p *Plugin) + func (c *Client) Run() + type CompositeError []error + func (ce CompositeError) Accumulate(err error) CompositeError + func (ce CompositeError) Error() string + type LoggingLevel int + const LogAll + const LogDebug + const LogError + const LogInfo + const LogNone + type Metric interface + Name func() string + Poll func() (float64, error) + Units func() string + func NewMetric(name, units string, pollFn func() (float64, error)) Metric + type Plugin struct + GUID string + Name string + func (p *Plugin) AddMetric(metric Metric)