perf

package
v0.0.0-...-6abc620 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateDefaultRollups

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

func RollupsMap

func RollupsMap() map[string]RollupFactory

Types

type ArgumentsModel

type ArgumentsModel struct {
	Name  string      `json:"name"`
	Value interface{} `json:"value"`
}

ArgumentsModel is the structure of an arbitrary argument of a TimeSeries.

type PerformanceAnalysisService

type PerformanceAnalysisService interface {
	ReportUpdatedTimeSeries(context.Context, TimeSeriesModel) error
}

PerformanceAnalysisService is the interface for the Performance Analysis Service.

func NewPerformanceAnalysisService

func NewPerformanceAnalysisService(baseURL, user string, token string) PerformanceAnalysisService

NewPerformanceAnalysisService creates a new PerformanceAnalysisService.

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) []model.PerfRollupValue
}

func DefaultRollupFactories

func DefaultRollupFactories() []RollupFactory

func RollupFactoryFromType

func RollupFactoryFromType(t string) RollupFactory

type TimeSeriesModel

type TimeSeriesModel struct {
	Project     string           `json:"project"`
	Variant     string           `json:"variant"`
	Task        string           `json:"task"`
	Test        string           `json:"test"`
	Measurement string           `json:"measurement"`
	Arguments   []ArgumentsModel `json:"args"`
}

TimeSeriesModel is the representation of the meta information that makes up a time series.

Jump to

Keyboard shortcuts

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