Documentation ¶
Index ¶
- func IsStringInSlice(slice []string, str string) bool
- func MakeHeader(tags []string) []string
- func SampleToRow(sample *stats.Sample, resTags []string, ignoredTags []string, row []string) []string
- type Collector
- func (c *Collector) Collect(scs []stats.SampleContainer)
- func (c *Collector) GetRequiredSystemTags() stats.SystemTagSet
- func (c *Collector) Init() error
- func (c *Collector) Link() string
- func (c *Collector) Run(ctx context.Context)
- func (c *Collector) SetRunStatus(status lib.RunStatus)
- func (c *Collector) WriteToFile()
- type Config
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 (*Collector) Collect ¶
func (c *Collector) Collect(scs []stats.SampleContainer)
Collect Saves samples to buffer
func (*Collector) GetRequiredSystemTags ¶
func (c *Collector) GetRequiredSystemTags() stats.SystemTagSet
GetRequiredSystemTags returns which sample tags are needed by this collector
func (*Collector) Link ¶
Link returns a dummy string, it's only included to satisfy the lib.Collector interface
func (*Collector) SetRunStatus ¶
SetRunStatus does nothing
func (*Collector) WriteToFile ¶
func (c *Collector) WriteToFile()
WriteToFile Writes samples to the csv file
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 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.