histogram

package
v0.0.0-...-c361a28 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PercentileBucketsBucket

func PercentileBucketsBucket(v int64) int64

func PercentileBucketsIndex

func PercentileBucketsIndex(v int64) int

func PercentileBucketsLength

func PercentileBucketsLength() int

func PercentileBucketsPercentile

func PercentileBucketsPercentile(counts []int64, pct float64) float64

func PercentileBucketsPercentiles

func PercentileBucketsPercentiles(counts []int64, pcts []float64) []float64

func PercentileTimerBuilder

func PercentileTimerBuilder() *percTimerBuilder

Types

type PercentileDistributionSummary

type PercentileDistributionSummary struct {
	// contains filtered or unexported fields
}

func NewPercentileDistributionSummary

func NewPercentileDistributionSummary(registry *spectator.Registry, name string, tags map[string]string) *PercentileDistributionSummary

func NewPercentileDistributionSummaryWithId

func NewPercentileDistributionSummaryWithId(registry *spectator.Registry, id *spectator.Id) *PercentileDistributionSummary

func (*PercentileDistributionSummary) Count

func (*PercentileDistributionSummary) Percentile

func (*PercentileDistributionSummary) Record

func (t *PercentileDistributionSummary) Record(amount int64)

func (*PercentileDistributionSummary) TotalAmount

func (t *PercentileDistributionSummary) TotalAmount() int64

type PercentileTimer

type PercentileTimer struct {
	// contains filtered or unexported fields
}

func NewPercentileTimer

func NewPercentileTimer(registry *spectator.Registry, name string, tags map[string]string) *PercentileTimer

func NewPercentileTimerWithId

func NewPercentileTimerWithId(registry *spectator.Registry, id *spectator.Id) *PercentileTimer

func NewPercentileTimerWithIdRange

func NewPercentileTimerWithIdRange(registry *spectator.Registry, id *spectator.Id,
	minDuration time.Duration, maxDuration time.Duration) *PercentileTimer

func (*PercentileTimer) Count

func (t *PercentileTimer) Count() int64

func (*PercentileTimer) Percentile

func (t *PercentileTimer) Percentile(p float64) float64

func (*PercentileTimer) Record

func (t *PercentileTimer) Record(amount time.Duration)

func (*PercentileTimer) TotalTime

func (t *PercentileTimer) TotalTime() time.Duration

Jump to

Keyboard shortcuts

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