load

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name            string
	SpyName         string
	SampleRate      uint32
	Units           metadata.Units
	AggregationType metadata.AggregationType
	// contains filtered or unexported fields
}

func NewApp

func NewApp(seed int, name string, c AppConfig) *App

func (*App) CreateInput added in v0.28.0

func (a *App) CreateInput(from, to time.Time) Input

func (*App) MergedTree added in v0.28.0

func (a *App) MergedTree() *tree.Tree

type AppConfig

type AppConfig struct {
	SpyName         string                   `yaml:"spyName"`
	SampleRate      uint32                   `yaml:"sampleRate"`
	Units           metadata.Units           `yaml:"units"`
	AggregationType metadata.AggregationType `yaml:"aggregationType"`

	Tags       []Tag `yaml:"tags"`
	Trees      int   `yaml:"trees"`
	TreeConfig `yaml:"treeConfig"`
}

type Input added in v0.28.0

type Input struct {
	StartTime       time.Time
	EndTime         time.Time
	Key             *segment.Key
	Val             *tree.Tree
	SpyName         string
	SampleRate      uint32
	Units           metadata.Units
	AggregationType metadata.AggregationType
}

type Stats

type Stats struct {
	RemainingPeriod time.Duration
}

type StorageWriteSuite

type StorageWriteSuite struct {
	// contains filtered or unexported fields
}

func (*StorageWriteSuite) AddApp

func (s *StorageWriteSuite) AddApp(app *App) *StorageWriteSuite

func (*StorageWriteSuite) AddAppWithConfig added in v0.28.0

func (s *StorageWriteSuite) AddAppWithConfig(name string, c AppConfig) *StorageWriteSuite

func (*StorageWriteSuite) Start

func (s *StorageWriteSuite) Start()

func (*StorageWriteSuite) Stats

func (s *StorageWriteSuite) Stats() Stats

type StorageWriteSuiteConfig

type StorageWriteSuiteConfig struct {
	Sources  int
	Interval time.Duration
	Period   time.Duration
	From     time.Time

	Seed    int
	Writers int
	WriteFn func(Input)
}

type Tag

type Tag struct {
	Name        string `yaml:"name"`
	Cardinality int    `yaml:"cardinality"`
	MinLen      int    `yaml:"minLen"`
	MaxLen      int    `yaml:"maxLen"`
}

type TagsGenerator

type TagsGenerator struct {
	// contains filtered or unexported fields
}

func NewTagGenerator

func NewTagGenerator(seed int, appName string) *TagsGenerator

func (*TagsGenerator) Add

func (g *TagsGenerator) Add(name string, card, min, max int) *TagsGenerator

func (*TagsGenerator) Next

func (g *TagsGenerator) Next() map[string]string

type TreeConfig

type TreeConfig struct {
	MaxSymLen int `yaml:"maxSymLen"`
	MaxDepth  int `yaml:"maxDepth"`
	Width     int `yaml:"width"`
}

type TreeGenerator

type TreeGenerator struct {
	TreeConfig
	// contains filtered or unexported fields
}

func NewTreeGenerator

func NewTreeGenerator(seed, trees int, c TreeConfig) *TreeGenerator

func (*TreeGenerator) Next

func (g *TreeGenerator) Next() *tree.Tree

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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