newrelic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider represents a resource provider in Terraform

Types

type Config

type Config struct {
	APIKey string
	APIURL string
}

Config contains New Relic provider settings

func (*Config) Client

func (c *Config) Client() (*newrelic.Client, error)

Client returns a new client for accessing New Relic

func (*Config) ClientInfra added in v1.0.1

func (c *Config) ClientInfra() (*newrelic.InfraClient, error)

ClientInfra returns a new client for accessing New Relic

func (*Config) ClientSynthetics added in v1.1.0

func (c *Config) ClientSynthetics() (*synthetics.Client, error)

ClientSynthetics returns a new client for accessing New Relic Synthetics

type ProviderConfig added in v1.0.1

type ProviderConfig struct {
	Client      *newrelic.Client
	InfraClient *newrelic.InfraClient
	Synthetics  *synthetics.Client
}

ProviderConfig for the custom provider

Jump to

Keyboard shortcuts

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