newrelic

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const TerraformProviderProductUserAgent = "terraform-provider-newrelic"

TerraformProviderProductUserAgent string used to identify this provider in User Agent requests

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 {
	AdminAPIKey          string
	PersonalAPIKey       string
	APIURL               string
	CACertFile           string
	InfrastructureAPIURL string
	InsecureSkipVerify   bool
	InsightsAccountID    string
	InsightsInsertKey    string
	InsightsInsertURL    string
	InsightsQueryKey     string
	InsightsQueryURL     string
	NerdGraphAPIURL      string
	SyntheticsAPIURL     string
	// contains filtered or unexported fields
}

Config contains New Relic provider settings

func (*Config) Client

func (c *Config) Client() (*nr.NewRelic, error)

Client returns a new client for accessing New Relic

func (*Config) ClientInsightsInsert added in v1.19.1

func (c *Config) ClientInsightsInsert() (*insights.InsertClient, error)

ClientInsightsInsert returns a new Insights insert client

func (*Config) ClientInsightsQuery added in v1.19.1

func (c *Config) ClientInsightsQuery() (*insights.QueryClient, error)

ClientInsightsQuery returns a new Insights query client

type InsightsEvent added in v1.19.1

type InsightsEvent struct {
	Type       string
	Timestamp  *int
	Attributes []map[string]interface{}
}

InsightsEvent represents an Insights event

func (*InsightsEvent) MarshalJSON added in v1.19.1

func (e *InsightsEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements a custom marshal method for InsightsEvent

type ProviderConfig added in v1.0.1

type ProviderConfig struct {
	NewClient            *nr.NewRelic
	InsightsInsertClient *insights.InsertClient
	InsightsQueryClient  *insights.QueryClient
}

ProviderConfig for the custom provider

Source Files

Jump to

Keyboard shortcuts

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