metrics

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(m []Sample)

Types

type Description

type Description struct {
	Name        string
	Description string
	Kind        ValueKind
	Cumulative  bool
}

func All

func All() []Description

type Float64Histogram

type Float64Histogram struct {
	Counts  []uint64
	Buckets []float64
}

type Sample

type Sample struct {
	Name  string
	Value Value
}

type Value

type Value struct{}

func (Value) Float64

func (v Value) Float64() float64

func (Value) Float64Histogram

func (v Value) Float64Histogram() *Float64Histogram

func (Value) Kind

func (v Value) Kind() ValueKind

func (Value) Uint64

func (v Value) Uint64() uint64

type ValueKind

type ValueKind int
const (
	KindBad ValueKind = iota
	KindUint64
	KindFloat64
	KindFloat64Histogram
)

Jump to

Keyboard shortcuts

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