pkg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NameOutput = "xk6-output-error"

Variables

This section is empty.

Functions

func New

func New(params output.Params) (output.Output, error)

New Creates new instance of CSV output

Types

type Config

type Config struct {
	Fields []string `json:"fileds" envconfig:"K6_OUTPUTERROR_FIELDS"`
	FTime  null.Int `json:"ftime"  envconfig:"K6_OUTPUTERROR_FTIME"`
}

func GetConsolidatedConfig

func GetConsolidatedConfig(jsonRawCfg json.RawMessage, confArg string) (Config, error)

type Output

type Output struct {
	output.SampleBuffer
	// contains filtered or unexported fields
}

Output implements the lib.Output interface for saving to CSV files.

func (*Output) Description

func (o *Output) Description() string

Description returns a human-readable description of the output.

func (*Output) Start

func (o *Output) Start() error

Start writes the csv header and starts a new output.PeriodicFlusher

func (*Output) Stop

func (o *Output) Stop() error

Stop flushes any remaining metrics and stops the goroutine.

Jump to

Keyboard shortcuts

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