validation

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxAttempts      = 60
	DefaultIntervalSeconds  = 5
	ValidationInProgressMsg = "Checking for data in New Relic (this may take a few minutes)..."
	ReachexMaxValidationMsg = "reached max validation attempts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PollingNRQLValidator

type PollingNRQLValidator struct {
	MaxAttempts          int
	IntervalMilliSeconds int
	ProgressIndicator    ux.ProgressIndicator
	// contains filtered or unexported fields
}

PollingNRQLValidator polls NRDB to assert data is being reported for the given query.

func NewPollingNRQLValidator

func NewPollingNRQLValidator(c utils.NRDBClient) *PollingNRQLValidator

NewPollingNRQLValidator returns a new instance of PollingNRQLValidator.

func (*PollingNRQLValidator) Validate

func (m *PollingNRQLValidator) Validate(ctx context.Context, query string) (string, error)

Validate polls NRDB to assert data is being reported for the given query.

Jump to

Keyboard shortcuts

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