metrics

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metrics provides metric reporting for TestGrid components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter interface {
	Metric

	Val() int64
	Add(int64, ...string)
}

Counter is a strictly-increasing metric.

func NewLogCounter

func NewLogCounter(name, desc string, log logrus.FieldLogger, fields ...string) Counter

NewLogCounter creates a new counter that logs.

type Int64

type Int64 interface {
	Metric

	Val() int64
	Set(int64, ...string)
}

Int64 is an int64 metric.

func NewLogInt64

func NewLogInt64(name, desc string, log logrus.FieldLogger, fields ...string) Int64

NewLogInt64 creates a new Int64 metric that logs.

type Metric

type Metric interface {
	Name() string
}

Metric contains common metric functions.

Jump to

Keyboard shortcuts

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