statistics

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Name  string
	Value float64
}

type StatisticSet

type StatisticSet struct {
	Counts    map[string]uint64
	Counters  map[string]uint64
	Durations map[string]float64
	Buckets   map[string]uint64
}

type Statistics

type Statistics struct {
	Names   map[string]StatisticSet
	Buckets []Bucket
	// contains filtered or unexported fields
}

func New

func New() *Statistics

func NewWithBuckets

func NewWithBuckets(buckets []float64) *Statistics

func (*Statistics) Add

func (s *Statistics) Add(name string, labelName string, labelValue string, duration float64)

func (*Statistics) AddStatistics added in v1.0.1

func (s *Statistics) AddStatistics(s2 *Statistics)

func (*Statistics) Inc added in v1.0.5

func (s *Statistics) Inc(name string, labelName string, labelValue string, delta uint64)

func (*Statistics) ReadGob added in v1.0.2

func (s *Statistics) ReadGob(resp *http.Response) error

func (*Statistics) Write

func (s *Statistics) Write(writer *http.ResponseWriter)

func (*Statistics) WriteGob

func (s *Statistics) WriteGob(writer *http.ResponseWriter) error

Jump to

Keyboard shortcuts

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