DVMetrics class

A registry of metrics, rendered on demand.

Constructors

DVMetrics()

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

counter(String name, [Map<String, String> labels = const <String, String>{}, String? help]) → DVCounter
gauge(String name, [Map<String, String> labels = const <String, String>{}, String? help]) → DVGauge
histogram(String name, [Map<String, String> labels = const <String, String>{}, String? help]) → DVHistogram
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render() → String
The registry in Prometheus text exposition format.
reset() → void
Forgets everything. For tests, which must not see each other's counts.
toString() → String
A string representation of this object.
inherited
typeOf(String name) → String?
counter, gauge or histogram, or null when nothing registered name.
valueOf(String name, [Map<String, String> labels = const <String, String>{}]) → double?
The current value of a counter or gauge series, or null when that series has not been recorded. A histogram has no single value and reads null.

Operators

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