newrelic

package
v2.50.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MPL-2.0 Imports: 51 Imported by: 3

Documentation

Index

Constants

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

TerraformProviderProductUserAgent string used to identify this provider in User Agent requests

Variables

View Source
var (
	// ProviderVersion is set during the release process to the
	// release version of the binary via `-ldflags`. This is technically
	// set in main.go which sets the variable below.
	//
	// Note: This is a temporary workaround until we figure out why the original way
	// no longer works.
	ProviderVersion = "dev"
)

Functions

func AwsGovCloudIntegrationAPIGatewayElem added in v2.43.2

func AwsGovCloudIntegrationAPIGatewayElem() *schema.Resource

func AwsGovCloudIntegrationAlbElem added in v2.43.2

func AwsGovCloudIntegrationAlbElem() *schema.Resource

func AwsGovCloudIntegrationAutoScalingElem added in v2.43.2

func AwsGovCloudIntegrationAutoScalingElem() *schema.Resource

func AwsGovCloudIntegrationAwsDirectConnectElem added in v2.43.2

func AwsGovCloudIntegrationAwsDirectConnectElem() *schema.Resource

func AwsGovCloudIntegrationAwsStatesElem added in v2.43.2

func AwsGovCloudIntegrationAwsStatesElem() *schema.Resource

func AwsGovCloudIntegrationCloudTrailElem added in v2.43.2

func AwsGovCloudIntegrationCloudTrailElem() *schema.Resource

func AwsGovCloudIntegrationDynamodbElem added in v2.43.2

func AwsGovCloudIntegrationDynamodbElem() *schema.Resource

func AwsGovCloudIntegrationEbsElem added in v2.43.2

func AwsGovCloudIntegrationEbsElem() *schema.Resource

func AwsGovCloudIntegrationEc2Elem added in v2.43.2

func AwsGovCloudIntegrationEc2Elem() *schema.Resource

func AwsGovCloudIntegrationElasticSearchElem added in v2.43.2

func AwsGovCloudIntegrationElasticSearchElem() *schema.Resource

func AwsGovCloudIntegrationElbElem added in v2.43.2

func AwsGovCloudIntegrationElbElem() *schema.Resource

func AwsGovCloudIntegrationEmrElem added in v2.43.2

func AwsGovCloudIntegrationEmrElem() *schema.Resource

func AwsGovCloudIntegrationIamElem added in v2.43.2

func AwsGovCloudIntegrationIamElem() *schema.Resource

func AwsGovCloudIntegrationLambdaElem added in v2.43.2

func AwsGovCloudIntegrationLambdaElem() *schema.Resource

func AwsGovCloudIntegrationRdsElem added in v2.43.2

func AwsGovCloudIntegrationRdsElem() *schema.Resource

func AwsGovCloudIntegrationRedshiftElem added in v2.43.2

func AwsGovCloudIntegrationRedshiftElem() *schema.Resource

func AwsGovCloudIntegrationRoute53Elem added in v2.43.2

func AwsGovCloudIntegrationRoute53Elem() *schema.Resource

func AwsGovCloudIntegrationS3Elem added in v2.43.2

func AwsGovCloudIntegrationS3Elem() *schema.Resource

func AwsGovCloudIntegrationSchemaBase added in v2.43.2

func AwsGovCloudIntegrationSchemaBase() map[string]*schema.Schema

func AwsGovCloudIntegrationSnsElem added in v2.43.2

func AwsGovCloudIntegrationSnsElem() *schema.Resource

func AwsGovCloudIntegrationSqsElem added in v2.43.2

func AwsGovCloudIntegrationSqsElem() *schema.Resource

func Provider

func Provider() *schema.Provider

Provider represents a resource provider in Terraform

Types

type Config

type Config struct {
	AdminAPIKey          string
	PersonalAPIKey       string
	Region               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

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

ClientInsightsInsert returns a new Insights insert client

type InsightsEvent

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

InsightsEvent represents an Insights event

func (*InsightsEvent) MarshalJSON

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

MarshalJSON implements a custom marshal method for InsightsEvent

type ProviderConfig

type ProviderConfig struct {
	NewClient            *nr.NewRelic
	InsightsInsertClient *insights.InsertClient
	AccountID            int
	PersonalAPIKey       string
}

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