metrics

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	TestExecutions       *prometheus.CounterVec
	TestSuiteExecutions  *prometheus.CounterVec
	TestCreations        *prometheus.CounterVec
	TestSuiteCreations   *prometheus.CounterVec
	TestUpdates          *prometheus.CounterVec
	TestSuiteUpdates     *prometheus.CounterVec
	TestTriggerCreations *prometheus.CounterVec
	TestTriggerUpdates   *prometheus.CounterVec
	TestAbort            *prometheus.CounterVec
}

func NewMetrics

func NewMetrics() Metrics

func (Metrics) IncAbortTest

func (m Metrics) IncAbortTest(testType string, failed bool)

func (Metrics) IncCreateTest

func (m Metrics) IncCreateTest(testType string, err error)

func (Metrics) IncCreateTestSuite

func (m Metrics) IncCreateTestSuite(err error)

func (Metrics) IncCreateTestTrigger

func (m Metrics) IncCreateTestTrigger(err error)

func (Metrics) IncExecuteTest

func (m Metrics) IncExecuteTest(execution testkube.Execution)

func (Metrics) IncExecuteTestSuite

func (m Metrics) IncExecuteTestSuite(execution testkube.TestSuiteExecution)

func (Metrics) IncUpdateTest

func (m Metrics) IncUpdateTest(testType string, err error)

func (Metrics) IncUpdateTestSuite

func (m Metrics) IncUpdateTestSuite(err error)

func (Metrics) IncUpdateTestTrigger

func (m Metrics) IncUpdateTestTrigger(err error)

Jump to

Keyboard shortcuts

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