stat

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Overview

Package stat define metric stats values

Index

Constants

View Source
const (
	//ErrorKey represents an error stat key
	ErrorKey = "error"
	//Pending represents pending operation stat key
	Pending = "pending"
	//CounterValueKey represents counter key
	CounterValueKey = "count"
	//CounterMineKey min key
	CounterMineKey = "min"
	//CounterMaxKey max key
	CounterMaxKey = "max"
	//CounterAvgKey avg
	CounterAvgKey = "avg"
	//CounterTimeTakenKey time taken key
	CounterTimeTakenKey = "timeTaken"
	//CounterPctKey pct key
	CounterPctKey = ".pct"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Values

type Values []interface{}

Values represents stats values

func New

func New() *Values

New creates stat values

func (*Values) Append

func (v *Values) Append(value interface{})

Append appends values to a slice

func (*Values) AppendAll

func (v *Values) AppendAll(values []interface{})

AppendAll appends all values

func (*Values) Values

func (v *Values) Values() []interface{}

Values returns all values

Jump to

Keyboard shortcuts

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