operation

package
v0.5.63 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 21 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsBatch

func AsBatch(hostEvent *hostMetricsEvent) (*influxdb.BatchPoints, error)

func AsBatch2 added in v0.5.35

func AsBatch2(hostEvent *hostMetricsEvent2) ([]*write.Point, error)
func Banner(msg string) model.Stage

func Closer

func Closer(ch chan struct{}) model.Stage

func Influx2MetricsReporter added in v0.5.35

func Influx2MetricsReporter() model.Stage

func InfluxMetricsReporter

func InfluxMetricsReporter() model.Stage

func Iperf

func Iperf(scenarioName string, endpoint EndpointSelectorF, serverHosts, clientHosts string, seconds int) model.Stage

func IperfClient

func IperfClient(hostSpec, address string, port int) model.Stage

func IperfUdp

func IperfUdp(scenarioName, endpoint, serverHosts, clientHosts, bandwidth string, seconds int) model.Stage

func Joiner

func Joiner(joiners []chan struct{}) model.Stage

func LoadInfluxConfig

func LoadInfluxConfig(src map[interface{}]interface{}) (*influxConfig, error)

func NewInflux2DBMetricsHandler added in v0.5.35

func NewInflux2DBMetricsHandler(cfg *influx2Config) (model.MetricsHandler, error)

func NewInfluxDBMetricsHandler

func NewInfluxDBMetricsHandler(cfg *influxConfig) (model.MetricsHandler, error)

func Persist

func Persist() model.Stage

func Retrieve

func Retrieve(host, path, extension string) model.Stage

func Sar

func Sar(scenario string, host *model.Host, intervalSeconds int, joiner chan struct{}) model.Stage

func SarCloser

func SarCloser(host *model.Host) model.Stage

func StreamSarMetrics

func StreamSarMetrics(host *model.Host, intervalSeconds, reportIntervalCount int, runPhase Phase, cleanupPhase Phase) model.Stage

func Tcpdump

func Tcpdump(scenarioName, host string, snaplen int, joiner chan struct{}) model.Stage

func TcpdumpCloser

func TcpdumpCloser(host string) model.Stage

func Timer

func Timer(duration time.Duration, closer chan struct{}) model.Stage

Types

type EndpointSelectorF added in v0.4.19

type EndpointSelectorF func(m *model.Model) string

type Phase

type Phase interface {
	model.Stage
	GetCloser() <-chan struct{}
	AddJoiner() chan struct{}
}

func NewPhase

func NewPhase() Phase

Jump to

Keyboard shortcuts

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