collector

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PVCBind stage
	PVCBind PVCStage = "PVCBind"
	// PVCAttachment stage
	PVCAttachment PVCStage = "PVCAttachment"
	// PVCCreation stage
	PVCCreation PVCStage = "PVCCreation"
	// PVCDeletion stage
	PVCDeletion PVCStage = "PVCDeletion"
	// PVCUnattachment stage
	PVCUnattachment PVCStage = "PVCUnattachment"

	// PodCreation stage
	PodCreation PodStage = "PodCreation"
	// PodDeletion stage
	PodDeletion PodStage = "PodDeletion"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DurationOfStage

type DurationOfStage struct {
	Min time.Duration
	Max time.Duration
	Avg time.Duration
}

DurationOfStage represents staging time

type MetricsCollection

type MetricsCollection struct {
	Run              store.TestRun
	TestCasesMetrics []TestCaseMetrics
}

MetricsCollection contains collection of TestCaseMetrics

type MetricsCollector

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

MetricsCollector contains db store and metrics collection

func NewMetricsCollector

func NewMetricsCollector(db store.Store) *MetricsCollector

NewMetricsCollector creates a MetricsCollector

func (*MetricsCollector) Collect

func (mc *MetricsCollector) Collect(runName string) (*MetricsCollection, error)

Collect consolidates the metrics and returns MetricsCollection

func (*MetricsCollector) CollectFunctionalMetrics

func (mc *MetricsCollector) CollectFunctionalMetrics() (*MetricsCollection, error)

CollectFunctionalMetrics gets metrics required for tabular reporting

type PVCMetrics

type PVCMetrics struct {
	PVC     store.Entity
	Metrics map[PVCStage]time.Duration
}

PVCMetrics contains PVC and corresponding metrics

type PVCStage

type PVCStage Stage

PVCStage step

type PodMetrics

type PodMetrics struct {
	Pod     store.Entity
	Metrics map[PodStage]time.Duration
}

PodMetrics contains Pod and corresponding metrics

type PodStage

type PodStage Stage

PodStage step

type Stage

type Stage string

Stage step

type TestCaseMetrics

type TestCaseMetrics struct {
	TestCase     store.TestCase
	Pods         []PodMetrics
	PVCs         []PVCMetrics
	StageMetrics map[interface{}]DurationOfStage

	EntityNumberMetrics  []store.NumberEntities
	ResourceUsageMetrics []store.ResourceUsage
}

TestCaseMetrics contains metrics for each testcase

Jump to

Keyboard shortcuts

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