aggregate

package
v0.0.0-...-7c007b9 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedData

type AggregatedData struct {
	Points     []AggregatedPoint
	ID         types.MetricID
	TimeToLive int64
}

func Aggregate

func Aggregate(data types.MetricData, resolution int64) AggregatedData

Aggregate aggregates data. The returned data keeps the same order as the input points.

type AggregatedPoint

type AggregatedPoint struct {
	Timestamp int64
	Min       float64
	Max       float64
	Average   float64
	Count     float64
}

Jump to

Keyboard shortcuts

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