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) ClientInsightsInsert ¶ added in v1.9.0
func (c *Config) ClientInsightsInsert() (*insights.InsertClient, error)
ClientInsightsInsert returns a new Insights insert client
func (*Config) ClientInsightsQuery ¶ added in v1.9.0
func (c *Config) ClientInsightsQuery() (*insights.QueryClient, error)
ClientInsightsQuery returns a new Insights query client
type InsightsEvent ¶ added in v1.9.0
InsightsEvent represents an Insights event
func (*InsightsEvent) MarshalJSON ¶ added in v1.9.0
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 ¶
- config.go
- data_source_newrelic_alert_channel.go
- data_source_newrelic_alert_policy.go
- data_source_newrelic_application.go
- data_source_newrelic_key_transaction.go
- data_source_newrelic_plugin.go
- data_source_newrelic_plugin_component.go
- data_source_newrelic_synthetics_monitor.go
- data_source_newrelic_synthetics_secure_credential.go
- helpers.go
- provider.go
- resource_newrelic_alert_channel.go
- resource_newrelic_alert_condition.go
- resource_newrelic_alert_policy.go
- resource_newrelic_alert_policy_channel.go
- resource_newrelic_application_label.go
- resource_newrelic_application_settings.go
- resource_newrelic_dashboard.go
- resource_newrelic_infra_alert_condition.go
- resource_newrelic_insights_event.go
- resource_newrelic_nrql_alert_condition.go
- resource_newrelic_plugins_alert_condition.go
- resource_newrelic_synthetics_alert_condition.go
- resource_newrelic_synthetics_label.go
- resource_newrelic_synthetics_monitor.go
- resource_newrelic_synthetics_monitor_script.go
- resource_newrelic_synthetics_secure_credential.go
- resource_newrelic_workload.go
- structures.go
- structures_newrelic_alert_channel.go
- structures_newrelic_alert_condition.go
- structures_newrelic_alert_policy.go
- structures_newrelic_alert_policy_channel.go
- structures_newrelic_application_settings.go
- structures_newrelic_dashboard.go
- structures_newrelic_infra_alert_condition.go
- structures_newrelic_nrql_alert_condition.go
- structures_newrelic_plugins_alert_condition.go
- structures_newrelic_synthetics_secure_credential.go
- structures_newrelic_workload.go
- validation.go
Click to show internal directories.
Click to hide internal directories.