Documentation ¶
Index ¶
- func CreateNRClient(cfg *config.Config, creds *credentials.Credentials) (*newrelic.NewRelic, *credentials.Profile, error)
- func WithClient(f func(c *newrelic.NewRelic))
- func WithClientAndProfile(f func(c *newrelic.NewRelic, p *credentials.Profile))
- func WithClientAndProfileFrom(configDir string, f func(c *newrelic.NewRelic, p *credentials.Profile))
- func WithClientFrom(configDir string, f func(c *newrelic.NewRelic))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNRClient ¶
func CreateNRClient(cfg *config.Config, creds *credentials.Credentials) (*newrelic.NewRelic, *credentials.Profile, error)
CreateNRClient initializes the New Relic client.
func WithClient ¶
WithClient returns a New Relic client.
func WithClientAndProfile ¶ added in v0.8.11
func WithClientAndProfile(f func(c *newrelic.NewRelic, p *credentials.Profile))
WithClientAndProfile returns a New Relic client and the profile used to initialize it, after environment oveerrides have been applied.
func WithClientAndProfileFrom ¶ added in v0.8.11
func WithClientAndProfileFrom(configDir string, f func(c *newrelic.NewRelic, p *credentials.Profile))
WithClientAndProfileFrom returns a New Relic client and default profile used to initialize it, after environment oveerrides have been applied.
func WithClientFrom ¶
WithClientFrom returns a New Relic client, initialized from configuration in the specified location.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.