TimeSeriesBuffer class

A bounded time-series buffer mixing raw recent points and older aggregates.

Constructors

TimeSeriesBuffer({required int rawCapacity, required int bucketSizeMs})
Keeps at most rawCapacity raw points; evicted points fold into buckets bucketSizeMs milliseconds wide. Both must be positive. Audited: 2026-06-12 11:26 EDT

Properties

aggregates List<TimeBucket>
The down-sampled buckets for evicted history, ordered by start time. Audited: 2026-06-12 11:26 EDT
no setter
hashCode int
The hash code for this object.
no setterinherited
raw List<RawPoint>
The raw points still held, oldest first (an unmodifiable snapshot). Audited: 2026-06-12 11:26 EDT
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(int timestampMs, num value) → void
Adds a point at timestampMs with value; evicts and folds the oldest raw point if the raw window is now over capacity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited