Documentation
¶
Index ¶
- type DataPoint
- type Timeseries
- func (ts *Timeseries) Add(t int64, v float64)
- func (ts Timeseries) All() []*DataPoint
- func (ts Timeseries) GetLatestValues(size int) []float64
- func (ts Timeseries) GetTrending(size int) (TrendType, error)
- func (ts Timeseries) Keys() []int64
- func (ts Timeseries) MaxValue() float64
- func (ts *Timeseries) Size() int
- func (ts Timeseries) Values() []float64
- type TrendType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timeseries ¶
Timeseries struct
func (Timeseries) GetLatestValues ¶
func (ts Timeseries) GetLatestValues(size int) []float64
GetLatestValues by size
func (Timeseries) GetTrending ¶
func (ts Timeseries) GetTrending(size int) (TrendType, error)
GetTrending for timeseries