diagnose

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConnection        = errors.New("there was an error connecting to New Relic platform. This is an indication that your firewall or proxy settings do not allow outbound traffic to the New Relic platform. To configure the use of an HTTP proxy, use the HTTP_PROXY and/or HTTPS_PROXY environment variables. For more details visit https://github.com/newrelic/newrelic-cli/blob/main/docs/GETTING_STARTED.md#using-an-http-proxy")
	ErrValidation        = errors.New("there was a failure locating the data that was posted to New Relic. Please try again later or contact New Relic support. For real-time platform status info visit https://status.newrelic.com/")
	ErrDiscovery         = errors.New("failed to detect your system's hostname. Please contact New Relic support.")
	ErrPostEvent         = errors.New("there was a failure posting data to New Relic. Please try again later or contact New Relic support. For real-time platform status info visit https://status.newrelic.com/")
	ErrLicenseKey        = errors.New("the configured license key is invalid for the configured account. Please set a valid license key with the `newrelic profile` command. For more details visit https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#ingest-license-key")
	ErrInsightsInsertKey = errors.New("the configured Insights insert key is invalid for the configured account. Please set a valid Insights insert key with the `newrelic profile` command. For more details visit https://docs.newrelic.com/docs/telemetry-data-platform/ingest-apis/introduction-event-api/#register")
)
View Source
var Command = &cobra.Command{
	Use:   "diagnose",
	Short: "Troubleshoot your New Relic installation",
}

Command represents the diagnose command.

Functions

This section is empty.

Types

type ConcreteConfigValidator added in v0.26.2

type ConcreteConfigValidator struct {
	*validation.PollingNRQLValidator
	// contains filtered or unexported fields
}

func NewConcreteConfigValidator added in v0.26.2

func NewConcreteConfigValidator(client *newrelic.NewRelic) *ConcreteConfigValidator

func (*ConcreteConfigValidator) ValidateConfig added in v0.26.2

func (c *ConcreteConfigValidator) ValidateConfig(ctx context.Context) error

type ConfigValidator added in v0.26.0

type ConfigValidator interface {
	ValidateConfig(ctx context.Context) error
}

type MockConfigValidator added in v0.26.2

type MockConfigValidator struct{}

func NewMockConfigValidator added in v0.26.2

func NewMockConfigValidator() *MockConfigValidator

func (*MockConfigValidator) ValidateConfig added in v0.26.2

func (v *MockConfigValidator) ValidateConfig(ctx context.Context) error

type ValidationTracerEvent added in v0.26.0

type ValidationTracerEvent struct {
	EventType string `json:"eventType"`
	Hostname  string `json:"hostname"`
	Purpose   string `json:"purpose"`
	GUID      string `json:"guid"`
}

Jump to

Keyboard shortcuts

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