metrics

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Metric is the global metrics object
	Metric = &Metrics{
		Disable: true,
	}
)

Functions

func InitializeMetrics

func InitializeMetrics(metric, ci string) error

InitializeMetrics - creates a new instance of a Metrics based on the type of metrics specified

Types

type Metrics

type Metrics struct {
	Disable bool
	// contains filtered or unexported fields
}

Metrics - structure to keep information relevant to the metrics calculation Disable - disables metric calculations

func (*Metrics) Start

func (m *Metrics) Start(location string)

Start - starts gathering metrics for the location specified

func (*Metrics) Stop

func (m *Metrics) Stop()

Stop - stops gathering metrics and logs the result

Jump to

Keyboard shortcuts

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