Versions in this module Expand all Collapse all v1 v1.5.1 Apr 23, 2018 Changes in this version + func Sum(r []store.Rate) store.Rate + type AppGUID string + type AppInfo struct + Name string + Org string + Space string + func (a AppInfo) String() string + type AppInfoStore interface + Lookup func(guids []string) (map[AppGUID]AppInfo, error) + type Authenticator interface + RefreshAuthToken func() (string, error) + type CachedAppInfoStore struct + func NewCachedAppInfoStore(s AppInfoStore, opts ...CachedAppInfoStoreOption) *CachedAppInfoStore + func (c *CachedAppInfoStore) Lookup(guids []string) (map[AppGUID]AppInfo, error) + type CachedAppInfoStoreOption func(*CachedAppInfoStore) + func WithCacheTTL(cacheTTL time.Duration) CachedAppInfoStoreOption + type Collector struct + func New(nozzles []string, auth Authenticator, nozzleAppGUID string, store AppInfoStore, ...) *Collector + func (c *Collector) BuildPoints(timestamp int64) ([]datadog.Point, error) + func (c *Collector) Rate(timestamp int64) (store.Rate, error) + type CollectorOption func(c *Collector) + func WithHTTPClient(client *http.Client) CollectorOption + func WithReportLimit(n int) CollectorOption + type GUIDIndex string + func (g GUIDIndex) GUID() string + func (g GUIDIndex) Index() string + type HTTPAppInfoStore struct + func NewHTTPAppInfoStore(apiAddr string, client HTTPClient, auth Authenticator) *HTTPAppInfoStore + func (s *HTTPAppInfoStore) Lookup(guids []string) (map[AppGUID]AppInfo, error) + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type V2Resource struct + Entity struct{ ... } + Metadata struct{ ... } + type V2Response struct + Resources []V2Resource + type V3Relationship struct + Data struct{ ... } + type V3Resource struct + GUID string + Name string + Relationships map[string]V3Relationship + type V3Response struct + Resources []V3Resource