validation

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxAttempts      = 60
	DefaultIntervalSeconds  = 5
	ReachedMaxValidationMsg = "reached max validation attempts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PollingNRQLValidator

type PollingNRQLValidator struct {
	MaxAttempts          int
	IntervalMilliSeconds int
	// 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