Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMetrics

func LogMetrics(metrics []Metrics) error

Types

type BaseMetrics

type BaseMetrics struct {
	// To let the 3rd party know that this log entry is important
	// TODO set this up by config file
	Marker string `json:"marker"`
	Name   string `json:"name"`
	Type   string `json:"type"`
}

type BaseStepDuration

type BaseStepDuration struct {
	Type      string        `json:"type"`
	StartTime time.Time     `json:"startTime"`
	TotalTime time.Duration `json:"totalTime"`
}

type Metrics

type Metrics interface {
	// contains filtered or unexported methods
}

type PodStepDuration

type PodStepDuration struct {
	BaseStepDuration
	WaitPodsDurations []time.Duration `json:"waitPodsDurations"`
	RateDelay         time.Duration   `json:"rateDelay"`
	RateDelayCount    int             `json:"rateDelayCount"`
	StepPause         time.Duration   `json:"stepPause"`
	StepPauseCount    int             `json:"stepPauseCount"`
	SyncTime          time.Duration   `json:"syncTime"`
}

func NewPodStepDuration

func NewPodStepDuration(rateDelay, stepPause time.Duration) PodStepDuration

type StepDuration

type StepDuration interface {
}

type TemplateStepDuration

type TemplateStepDuration struct {
	BaseStepDuration
	RateDelay      time.Duration `json:"rateDelay"`
	RateDelayCount int           `json:"rateDelayCount"`
	StepPause      time.Duration `json:"stepPause"`
	StepPauseCount int           `json:"stepPauseCount"`
	SyncTime       time.Duration `json:"syncTime"`
}

func NewTemplateStepDuration

func NewTemplateStepDuration(rateDelay, stepPause time.Duration) TemplateStepDuration

type TestDuration

type TestDuration struct {
	BaseMetrics
	StartTime    time.Time      `json:"startTime"`
	TestDuration time.Duration  `json:"testDuration"`
	Steps        []StepDuration `json:"Steps"`
}

func NewTestDuration

func NewTestDuration(name string, startTime time.Time, testDuration time.Duration, steps []StepDuration) TestDuration

Jump to

Keyboard shortcuts

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