Gauge<T> class abstract

A gauge metric is an instantaneous reading of a particular value. To instrument a queue's depth, for example:

List l = [];
final gauge = new Gauge<int>(() => l.length);
Inheritance
Implementers

Constructors

Gauge(T _getValue())
factory

Properties

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

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