nr_yml

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2020, Jeff Alder

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromDefaultYaml

func ConfigFromDefaultYaml() newrelic.ConfigOption

Uses `newrelic.yml` in the current directory, plus the environment defined by `NEW_RELIC_ENVIRONMENT`. if `NEW_RELIC_ENVIRONMENT` is not defined or is empty, the literal string `production` is used.

func ConfigFromYamlFile

func ConfigFromYamlFile(filename string) newrelic.ConfigOption

Uses the supplied filename, plus the environment defined by `NEW_RELIC_ENVIRONMENT`. if `NEW_RELIC_ENVIRONMENT` is not defined or is empty, the literal string `production` is used.

func ConfigFromYamlFileEnvironment

func ConfigFromYamlFileEnvironment(filename string, environment string) newrelic.ConfigOption

Uses the supplied filename and environment.

Types

type AttributesYaml

type AttributesYaml struct {
	Enabled *bool     `yaml:"enabled"`
	Include *[]string `yaml:"include"`
	Exclude *[]string `yaml:"exclude"`
}

Don't use this; it's only exported for the yaml parser

type ConfigYaml

type ConfigYaml struct {
	AppName               *string                 `yaml:"app_name"`
	License               *string                 `yaml:"license_key"`
	Host                  *string                 `yaml:"host"`
	Enabled               *bool                   `yaml:"agent_enabled"`
	HighSecurity          *bool                   `yaml:"high_security"`
	SecurityPoliciesToken *string                 `yaml:"security_policies_token"`
	LogStreamName         *string                 `yaml:"log_stream_name"`
	LogLevel              *string                 `yaml:"log_level"`
	Labels                *map[string]string      `yaml:"labels"`
	DistributedTracing    *DistributedTracingYaml `yaml:"distributed_tracing"`
	InfiniteTracing       *InfiniteTracingYaml    `yaml:"infinite_tracing"`
	ProcessHost           *ProcessHostYaml        `yaml:"process_host"`
	Attributes            *AttributesYaml         `yaml:"attributes"`
	Utilization           *UtilizationYaml        `yaml:"utilization"`
}

Don't use this; it's only exported for the yaml parser

type DistributedTracingYaml

type DistributedTracingYaml struct {
	Enabled *bool `yaml:"enabled"`
}

Don't use this; it's only exported for the yaml parser

type EventsYaml

type EventsYaml struct {
	QueueSize *uint32 `yaml:"queue_size"`
}

Don't use this; it's only exported for the yaml parser

type InfiniteTracingYaml

type InfiniteTracingYaml struct {
	TraceObserver *TraceObserverYaml `yaml:"trace_observer"`
	SpanEvents    *EventsYaml        `yaml:"span_events"`
}

Don't use this; it's only exported for the yaml parser

type ProcessHostYaml

type ProcessHostYaml struct {
	DisplayName *string `yaml:"display_name"`
}

Don't use this; it's only exported for the yaml parser

type TraceObserverYaml

type TraceObserverYaml struct {
	Host *string `yaml:"host"`
	// why is this signed and 32-bit? TCP ports are limited to uint16.
	Port *uint16 `yaml:"port"`
}

Don't use this; it's only exported for the yaml parser

type UtilizationYaml

type UtilizationYaml struct {
	BillingHostname   *string `yaml:"billing_hostname"`
	LogicalProcessors *uint16 `yaml:"logical_processors"`
	TotalRAMMIB       *uint32 `yaml:"total_ram_mib"`
	DetectAWS         *bool   `yaml:"detect_aws"`
	DetectDocker      *bool   `yaml:"detect_docker"`
	DetectPCF         *bool   `yaml:"detect_pcf"`
	DetectGCP         *bool   `yaml:"detect_gcp"`
	DetectAzure       *bool   `yaml:"detect_azure"`
	DetectKubernetes  *bool   `yaml:"detect_kubernetes"`
}

Don't use this; it's only exported for the yaml parser

Jump to

Keyboard shortcuts

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