run

package
v1.0.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NextIterationWindow = 10 * time.Millisecond

Variables

This section is empty.

Functions

func Cmd

func Cmd(s *scenarios.Scenarios, builders []api.Builder, hookFunc logging.RegisterLogHookFunc) *cobra.Command

Types

type DurationPercentileMap

type DurationPercentileMap map[float64]time.Duration

func (*DurationPercentileMap) Get

func (*DurationPercentileMap) String

func (m *DurationPercentileMap) String() string

type Run

type Run struct {
	Options options.RunOptions

	RateDescription string
	// contains filtered or unexported fields
}

func NewRun

func NewRun(options options.RunOptions, t *api.Trigger) (*Run, error)

func (*Run) Do

func (r *Run) Do(s *scenarios.Scenarios) *RunResult

type RunResult

type RunResult struct {
	SuccessfulIterationCount     uint64
	SuccessfulIterationDurations DurationPercentileMap
	FailedIterationCount         uint64
	FailedIterationDurations     DurationPercentileMap

	TestDuration               time.Duration
	LogFile                    string
	IgnoreDropped              bool
	DroppedIterationCount      uint64
	RecentSuccessfulIterations uint64
	RecentDuration             time.Duration
	// contains filtered or unexported fields
}

func (*RunResult) AddError

func (r *RunResult) AddError(err error) *RunResult

func (*RunResult) ClearProgressMetrics

func (r *RunResult) ClearProgressMetrics()

func (*RunResult) Duration

func (r *RunResult) Duration() time.Duration

func (*RunResult) Error

func (r *RunResult) Error() error

func (*RunResult) Failed

func (r *RunResult) Failed() bool

func (*RunResult) IncrementMetrics

func (r *RunResult) IncrementMetrics(duration time.Duration, result string, stage string, count uint64, quantiles []*io_prometheus_client.Quantile)

func (*RunResult) Interrupted

func (r *RunResult) Interrupted() string

func (*RunResult) Iterations

func (r *RunResult) Iterations() uint64

func (*RunResult) IterationsStarted

func (r *RunResult) IterationsStarted() uint64

func (*RunResult) MaxDurationElapsed

func (r *RunResult) MaxDurationElapsed() string

func (*RunResult) MaxIterationsReached added in v1.0.2

func (r *RunResult) MaxIterationsReached() string

func (*RunResult) Progress

func (r *RunResult) Progress() string

func (*RunResult) RecordStarted

func (r *RunResult) RecordStarted()

func (*RunResult) RecordTestFinished

func (r *RunResult) RecordTestFinished()

func (*RunResult) SetMetrics

func (r *RunResult) SetMetrics(result string, stage string, count uint64, quantiles []*io_prometheus_client.Quantile)

func (*RunResult) Setup

func (r *RunResult) Setup() string

func (*RunResult) StartTime

func (r *RunResult) StartTime() time.Time

func (*RunResult) String

func (r *RunResult) String() string

func (*RunResult) Teardown

func (r *RunResult) Teardown() string

Jump to

Keyboard shortcuts

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