const timeSeriesNumBuckets …
const minuteHourSeriesNumBuckets …
var timeSeriesResolutions …
var minuteHourSeriesResolutions …
type Observable …
type Float …
func NewFloat() Observable { … }
func (f *Float) String() string { … }
func (f *Float) Value() float64 { … }
func (f *Float) Multiply(ratio float64) { … }
func (f *Float) Add(other Observable) { … }
func (f *Float) Clear() { … }
func (f *Float) CopyFrom(other Observable) { … }
type Clock …
type defaultClock …
var defaultClockInstance …
func (defaultClock) Time() time.Time { … }
type tsLevel …
func (l *tsLevel) Clear() { … }
func (l *tsLevel) InitLevel(size time.Duration, numBuckets int, f func() Observable) { … }
type timeSeries …
func (ts *timeSeries) init(resolutions []time.Duration, f func() Observable, numBuckets int, clock Clock) { … }
func (ts *timeSeries) Clear() { … }
func (ts *timeSeries) Add(observation Observable) { … }
func (ts *timeSeries) AddWithTime(observation Observable, t time.Time) { … }
func (ts *timeSeries) mergeValue(observation Observable, t time.Time) { … }
func (ts *timeSeries) mergePendingUpdates() { … }
func (ts *timeSeries) advance(t time.Time) { … }
func (ts *timeSeries) Latest(level, num int) Observable { … }
func (ts *timeSeries) LatestBuckets(level, num int) []Observable { … }
func (ts *timeSeries) ScaleBy(factor float64) { … }
func (ts *timeSeries) Range(start, finish time.Time) Observable { … }
func (ts *timeSeries) Recent(delta time.Duration) Observable { … }
func (ts *timeSeries) Total() Observable { … }
func (ts *timeSeries) ComputeRange(start, finish time.Time, num int) []Observable { … }
func (ts *timeSeries) RecentList(delta time.Duration, num int) []Observable { … }
func (ts *timeSeries) extract(l *tsLevel, start, finish time.Time, num int, results []Observable) { … }
func (ts *timeSeries) resetObservation(observation Observable) Observable { … }
type TimeSeries …
func NewTimeSeries(f func() Observable) *TimeSeries { … }
func NewTimeSeriesWithClock(f func() Observable, clock Clock) *TimeSeries { … }
type MinuteHourSeries …
func NewMinuteHourSeries(f func() Observable) *MinuteHourSeries { … }
func NewMinuteHourSeriesWithClock(f func() Observable, clock Clock) *MinuteHourSeries { … }
func (ts *MinuteHourSeries) Minute() Observable { … }
func (ts *MinuteHourSeries) Hour() Observable { … }
func minTime(a, b time.Time) time.Time { … }
func maxTime(a, b time.Time) time.Time { … }