rollups

package
v0.0.0-...-fa0dfec Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RollupsMap

func RollupsMap() map[string]RollupFactory

Types

type MetricType

type MetricType string
const (
	MetricTypeMean         MetricType = "mean"
	MetricTypeMedian       MetricType = "median"
	MetricTypeMax          MetricType = "max"
	MetricTypeMin          MetricType = "min"
	MetricTypeSum          MetricType = "sum"
	MetricTypeStdDev       MetricType = "standard-deviation"
	MetricTypePercentile99 MetricType = "percentile-99th"
	MetricTypePercentile90 MetricType = "percentile-90th"
	MetricTypePercentile95 MetricType = "percentile-95th"
	MetricTypePercentile80 MetricType = "percentile-80th"
	MetricTypePercentile50 MetricType = "percentile-50th"
	MetricTypeThroughput   MetricType = "throughput"
	MetricTypeLatency      MetricType = "latency"
)

type PerfRollupValue

type PerfRollupValue struct {
	Name          string      `bson:"name"`
	Value         interface{} `bson:"val"`
	Version       int         `bson:"version"`
	MetricType    MetricType  `bson:"type"`
	UserSubmitted bool        `bson:"user"`
}

func CalculateDefaultRollups

func CalculateDefaultRollups(dx *ftdc.ChunkIterator, user bool) ([]PerfRollupValue, error)

type PerformanceStatistics

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

func CreatePerformanceStats

func CreatePerformanceStats(dx *ftdc.ChunkIterator) (*PerformanceStatistics, error)

type RollupFactory

type RollupFactory interface {
	Type() string
	Names() []string
	Version() int
	Calc(*PerformanceStatistics, bool) []PerfRollupValue
}

func DefaultRollupFactories

func DefaultRollupFactories() []RollupFactory

func RollupFactoryFromType

func RollupFactoryFromType(t string) RollupFactory

Jump to

Keyboard shortcuts

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