timeline

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRes         int64 = 1500
	DefaultMinInterval       = time.Second * 15
)

Functions

func CalcPointInterval

func CalcPointInterval(fromMs int64, untilMs int64) float64

CalcPointInterval calculates the appropriate interval between each point (aka step) Note that its main usage is with SelectSeries, therefore its * inputs are in ms * output is in seconds

func New

func New(series *v1.Series, startMs int64, endMs int64, durationDeltaSec int64) *flamebearer.FlamebearerTimelineV1

New generates a FlamebearerTimeline, backfilling any missing data with zeros. If startMs or endMs are in the middle of its durationDeltaSec bucket, they will be snapped to the beginning of that bucket.

It assumes: * Ordered * Series timestamps are within [startMs, endMs)

Types

This section is empty.

Jump to

Keyboard shortcuts

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