aggregation

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeWindow

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

func NewTimeWindow

func NewTimeWindow(duration, granularity time.Duration) *TimeWindow

func (*TimeWindow) Avg

func (t *TimeWindow) Avg() (float64, error)

func (*TimeWindow) Max

func (t *TimeWindow) Max() (float64, error)

func (*TimeWindow) Min

func (t *TimeWindow) Min() (float64, error)

func (*TimeWindow) Record

func (t *TimeWindow) Record(now time.Time, value float64)

func (*TimeWindow) String

func (tw *TimeWindow) String() string

Jump to

Keyboard shortcuts

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