Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStringInSlice ¶
IsStringInSlice returns whether the string is contained within a string slice
func MakeHeader ¶
MakeHeader creates list of column names for csv file
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector saving output to csv implements the lib.Collector interface
func New ¶
func New(logger logrus.FieldLogger, fs afero.Fs, tags stats.TagSet, config Config) (*Collector, error)
New Creates new instance of CSV collector
func (*Collector) Collect ¶
func (c *Collector) Collect(scs []stats.SampleContainer)
Collect Saves samples to buffer
type Config ¶
type Config struct { // Samples. FileName null.String `json:"file_name" envconfig:"K6_CSV_FILENAME"` SaveInterval types.NullDuration `json:"save_interval" envconfig:"K6_CSV_SAVE_INTERVAL"` }
Config is the config for the csv collector
func GetConsolidatedConfig ¶ added in v0.31.0
func GetConsolidatedConfig(jsonRawConf json.RawMessage, env map[string]string, arg string) (Config, error)
GetConsolidatedConfig combines {default config values + JSON config + environment vars + arg config values}, and returns the final result.
func NewConfig ¶
func NewConfig() Config
NewConfig creates a new Config instance with default values for some fields.
Click to show internal directories.
Click to hide internal directories.