Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPostRetryDelaySec = 5 DefaultPostMaxRetries = 20 DefaultMaxValidationAttempts = 20 )
Variables ¶
View Source
var ( ErrConnectionStringFormat = "" /* 399-byte string literal not displayed */ 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 ConfigValidator ¶ added in v0.26.0
type ConfigValidator struct { *validation.PollingNRQLValidator PostRetryDelaySec int PostMaxRetries int // contains filtered or unexported fields }
func NewConfigValidator ¶ added in v0.26.0
func NewConfigValidator(client *newrelic.NewRelic) *ConfigValidator
type MockConfigValidator ¶ added in v0.26.2
type MockConfigValidator struct{}
func NewMockConfigValidator ¶ added in v0.26.2
func NewMockConfigValidator() *MockConfigValidator
Click to show internal directories.
Click to hide internal directories.