pkg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const NameOutput = "clickhouse"

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 {
	PushInterval  types.NullDuration `json:"pushInterval" envconfig:"K6_CLICKHOUSE_PUSH_INTERVAL"`
	DSN           null.String        `json:"dsn" envconfig:"K6_CLICKHOUSE_DSN"`
	IgnoreMetrics null.String        `json:"ignoreMetric" envconfig:"K6_CLICKHOUSE_IGNORE_METRICS"`
	IgnMetrics    []string
	ClickConfig   *clickhouse.Options
}

Config xk6-clickhouse-output.

type Output

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

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