tsdb

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInfluxDB added in v0.6.0

func NewInfluxDB(conf ConfInfluxDB) (*vInfluxDB, error)

func NewWarp10 added in v0.6.0

func NewWarp10(conf ConfWarp10) (*warp10, error)

Types

type ConfDatadog added in v0.6.0

type ConfDatadog struct {
	Enable       bool          `toml:"enable"`
	Endpoint     string        `toml:"endpoint"`
	APIKey       string        `toml:"api_key"`
	APPKey       string        `toml:"app_key"`
	CustomPrefix string        `toml:"customprefix"`
	Timeout      time.Duration `toml:"timeout"`
}

type ConfInfluxDB

type ConfInfluxDB struct {
	Enable   bool          `toml:"enable"`
	Addr     string        `toml:"addr"`
	User     string        `toml:"user"`
	Password string        `toml:"password"`
	Database string        `toml:"database"`
	Timeout  time.Duration `toml:"timeout"`
}

type ConfInfluxDBv2 added in v0.6.0

type ConfInfluxDBv2 struct {
	Enable       bool   `toml:"enable"`
	Addr         string `toml:"addr"`
	Organization string `toml:"organization"`
	Bucket       string `toml:"bucket"`
	Precision    string `toml:"precision"`
	Token        string `toml:"token"`
}

type ConfWarp10 added in v0.5.0

type ConfWarp10 struct {
	Enable  bool `toml:"enable"`
	Addr    string
	Token   string
	Prefix  string
	Timeout time.Duration `toml:"timeout"`
}

type TsdbEndpoint added in v0.6.0

type TsdbEndpoint interface {
	Name() string

	WritePoint(task teststruct.Task) error
	UpdateTestState(task teststruct.Task) error
	// contains filtered or unexported methods
}

type Tsdbs added in v0.6.0

type Tsdbs struct {
	sync.RWMutex
	Enable        bool
	TsdbEndpoints []TsdbEndpoint
}
var TsdbManager Tsdbs

func (*Tsdbs) AddTsdb added in v0.6.0

func (ts *Tsdbs) AddTsdb(endpoint TsdbEndpoint)

func (*Tsdbs) UpdateTestStateToDB added in v0.6.0

func (ts *Tsdbs) UpdateTestStateToDB(task teststruct.Task)

func (*Tsdbs) WriteOnTsdbs added in v0.6.0

func (ts *Tsdbs) WriteOnTsdbs(task teststruct.Task)

Jump to

Keyboard shortcuts

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