CachedGauge<T> class

A Gauge implementation which caches its value for a period of time.

Implemented types

Constructors

CachedGauge(T _getValue(), Duration timeout, [Clock _clock = const Clock()])
Creates a new cached gauge with the given clock and timeout period.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
final
value → T
Returns the metric's current value.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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