minmaxmed

package
v0.50.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observor

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

Observor is a structure which records the minimum and maximum for a streaming set of observations and timings.

Observations can be included by calling Add(n).

func New

func New(medianWindowSize int) *Observor

New returns an Observor

func (*Observor) Add

func (o *Observor) Add(n int64)

func (*Observor) AddDuration

func (o *Observor) AddDuration(v time.Duration)

func (*Observor) AddEvent

func (o *Observor) AddEvent(s trace.Span)

Jump to

Keyboard shortcuts

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