Metrics class abstract
Metrics tracks metrics across a set of peers.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
latencyEWMA(
PeerId id) → Future< Duration> - LatencyEWMA returns an exponentially-weighted moving avg. of all measurements of a peer's latency.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordLatency(
PeerId id, Duration latency) → void - RecordLatency records a new latency measurement
-
removePeer(
PeerId id) → void - RemovePeer removes all metrics stored for a peer.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited