metrics

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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

	Add(int64, ...string)
}

Counter is a strictly-increasing metric.

func NewLogCounter

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

type Int64

type Int64 interface {
	Metric

	Set(int64, ...string)
}

Int64 is an int64 metric.

func NewLogInt64

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

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