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 ¶
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 ¶
PVCMetrics contains PVC and corresponding metrics
type PodMetrics ¶
PodMetrics contains Pod and corresponding metrics
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
Click to show internal directories.
Click to hide internal directories.