MemoryMetricRepository class
In-memory MetricRepository keeping a bounded ring of samples per node.
- Implemented types
Constructors
- MemoryMetricRepository({int capacityPerNode = 1000})
- Creates an in-memory metric repository.
Properties
- capacityPerNode → int
-
The maximum number of samples retained per node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recentFor(
NodeId nodeId, {int limit = 100, DateTime? since}) → Future< List< MetricSample> > -
Returns recent samples for
nodeId, newest first, up tolimit.override -
record(
MetricSample sample) → Future< void> -
Records a
sample.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited