ConsoleReporter class

A reporter which outputs measurements with a StringSink.

Inheritance

Constructors

ConsoleReporter(MetricRegistry registry, {StringSink? output, Clock clock = const Clock(), TimeUnit? rateUnit, TimeUnit? durationUnit, MetricFilter? where})
factory

Properties

durationUnit TimeUnit
finalinherited
hashCode int
The hash code for this object.
no setterinherited
rateUnit TimeUnit
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
where MetricFilter?
finalinherited

Methods

convertDuration(num duration) double
inherited
convertRate(double rate) double
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report() → void
Report the current values of all metrics in the registry.
inherited
reportMetrics({Map<String, Gauge>? gauges, Map<String, Counter>? counters, Map<String, Histogram>? histograms, Map<String, Meter>? meters, Map<String, Timer>? timers}) → void
Called periodically by the polling thread. Subclasses should report all the given metrics.
override
start(Duration period) → void
Starts the reporter polling at the given period (the amount of time between polls).
inherited
stop() → void
Stops the reporter.
inherited
toString() String
A string representation of this object.
inherited

Operators

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