es

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address        string
	PushInterval   time.Duration
	Username       string
	Password       string
	Index          string
	SnifferEnabled bool
	MaxBulkSize    int
}

Config is the config for the template collector

func NewConfig

func NewConfig(p output.Params) (Config, error)

NewConfig creates a new Config instance from the provided output.Params

type Output

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

Output implements the lib.Output interface

func New

func New(p output.Params) (*Output, error)

New creates an instance of the collector

func (*Output) Description

func (o *Output) Description() string

func (*Output) Start

func (o *Output) Start() error

func (*Output) Stop

func (o *Output) Stop() error

type XK6ElasticSample

type XK6ElasticSample struct {
	Name      string            `json:"name"`
	Type      string            `json:"type"`
	Timestamp int64             `json:"@timestamp"`
	Tags      map[string]string `tags:"tags"`
	Value     float64           `tags:"value"`
}

Jump to

Keyboard shortcuts

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