ScheduledReporter class abstract
The abstract base class for all scheduled reporters (i.e., reporters which process a registry's metrics periodically).
- Implemented types
- Implementers
Constructors
- ScheduledReporter(MetricRegistry _registry, TimeUnit rateUnit, TimeUnit durationUnit, {MetricFilter? where})
- Creates a new ScheduledReporter instance.
Properties
- durationUnit → TimeUnit
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- rateUnit → TimeUnit
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- where → MetricFilter?
-
final
Methods
-
convertDuration(
num duration) → double -
convertRate(
double rate) → double -
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.
-
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.
-
start(
Duration period) → void -
Starts the reporter polling at the given
period
(the amount of time between polls). -
stop(
) → void - Stops the reporter.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- log → Logger
-
final