Meter class

A meter metric which measures mean throughput and one-, five-, and fifteen-minute exponentially-weighted moving average throughputs.

See EWMA

Implemented types

Constructors

Meter([Clock clock = const Clock()])
Creates a new Meter.

Properties

count int
Returns the number of events which have been marked.
no setteroverride
fifteenMinuteRate double
Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
no setteroverride
fiveMinuteRate double
Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
meanRate double
Returns the mean rate at which events have occurred since the meter was created.
no setteroverride
oneMinuteRate double
Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

mark([int n = 1]) → void
Mark the occurrence of n number of events.
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