logsgenerator

package
v0.0.0-...-2b985cc Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogsGeneratorDaemonSet

func GetLogsGeneratorDaemonSet(
	namespace string,
	name string,
	image string,
	options LogsGeneratorOptions,
) appsv1.DaemonSet

func GetLogsGeneratorDeployment

func GetLogsGeneratorDeployment(
	namespace string,
	name string,
	image string,
	options LogsGeneratorOptions,
) appsv1.Deployment

Types

type LogsGeneratorOptions

type LogsGeneratorOptions struct {

	// how long we should run in total
	// the way Duration and TotalLogs interact, is that the program exits on the first condition achieved
	// in particular, there isn't a way to make it continue running after generating a fixed number of logs
	Duration uint
	// how many log lines to generate in total
	TotalLogs uint
	// maximum number of logs generated per second
	LogsThroughput uint
	// maximum number of bytes generater per second
	BytesThroughput uint
	// should we print diagnostic messages?
	Verbose bool

	// These options control random pattern generation
	RandomPatterns      uint
	MinPatternLength    uint
	MaxPatternLength    uint
	KnownWordsInRatio   uint
	RandomWordsInRatio  uint
	RandomDigitsInRatio uint

	// This option allows the pattern to be controlled directly
	Pattern string
}

func NewDefaultGeneratorOptions

func NewDefaultGeneratorOptions() *LogsGeneratorOptions

Jump to

Keyboard shortcuts

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