config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchConfig

type BatchConfig struct {
	Series int `yaml:"series"`
	Points int `yaml:"points"`
}

type ConstantValueGeneratorConfig

type ConstantValueGeneratorConfig struct {
	Int    int     `yaml:"int"`
	Double float64 `yaml:"double"`
}

type CounterReporterConfig

type CounterReporterConfig struct {
	Foo string `yaml:"foo"`
}

type RandomValueGeneratorConfig

type RandomValueGeneratorConfig struct {
	Min float64 `yaml:"min"`
	Max float64 `yaml:"max"`
}

type ReporterConfig

type ReporterConfig struct {
	Name    string                 `yaml:"name"`
	Type    string                 `yaml:"type"`
	Counter *CounterReporterConfig `yaml:"counter"`
	TSDB    *TSDBReporterConfig    `yaml:"tsdb"`
}

type SeriesConfig

type SeriesConfig struct {
	Prefix              string        `yaml:"prefix"`
	Num                 int           `yaml:"num"`
	Churn               bool          `yaml:"churn"`
	ChurnDuration       time.Duration `yaml:"churnDuration"`
	NumTags             int           `yaml:"numTags"`
	GroupPointsBySeries bool          `yaml:"groupPointsBySeries"`
}

type TSDBReporterConfig

type TSDBReporterConfig struct {
	// Sample is 1 from n samples, will ignore everything if n < 1
	Sample   int                    `yaml:"sample"`
	Database libtsdb.DatabaseConfig `yaml:"database"`
}

type TimeConfig

type TimeConfig struct {
	//Type string `yaml:"type"`
	Interval time.Duration `yaml:"interval"`
}

type ValueConfig

type ValueConfig struct {
	Generator string                        `yaml:"generator"`
	Constant  *ConstantValueGeneratorConfig `yaml:"constant"`
	Random    *RandomValueGeneratorConfig   `yaml:"random"`
}

type WorkerConfig

type WorkerConfig struct {
	Num int `yaml:"num"`
}

type WorkloadConfig

type WorkloadConfig struct {
	Name   string       `yaml:"name"`
	Batch  BatchConfig  `yaml:"batch"`
	Series SeriesConfig `yaml:"series"`
	Time   TimeConfig   `yaml:"time"`
	Value  ValueConfig  `yaml:"value"`
}

type XephonBConfig

type XephonBConfig struct {
	Limit     string                   `yaml:"limit"`
	Duration  time.Duration            `yaml:"duration"`
	Worker    WorkerConfig             `yaml:"worker"`
	Workload  string                   `yaml:"workload"`
	Workloads []WorkloadConfig         `yaml:"workloads"`
	Database  string                   `yaml:"database"`
	Databases []libtsdb.DatabaseConfig `yaml:"databases"`
	Reporter  string                   `yaml:"reporter"`
	Reporters []ReporterConfig         `yaml:"reporters"`
}

Jump to

Keyboard shortcuts

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