Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
func New ¶
func New(period time.Duration, clock Clock, method WindowingMethod) *Accumulator
func (*Accumulator) Accumulate ¶
func (acc *Accumulator) Accumulate(val float64) (Stats, error)
type WindowingMethod ¶
type WindowingMethod int
const ( ROLLING WindowingMethod = iota CONSECUTIVE )
Click to show internal directories.
Click to hide internal directories.