Class StepCounter
- java.lang.Object
-
- io.micrometer.core.instrument.AbstractMeter
-
- io.micrometer.core.instrument.step.StepCounter
-
public class StepCounter extends AbstractMeter implements Counter
Counter that reports a rate per second to a monitoring system. Note thatcount()
will report the number of events in the last complete interval rather than the total for the life of the process.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Counter
Counter.Builder
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.Type
-
-
Constructor Summary
Constructors Constructor Description StepCounter(Meter.Id id, Clock clock, long stepMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
count()
void
increment(double amount)
Update the counter byamount
.-
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
getId
-
-
-
-
Method Detail
-
increment
public void increment(double amount)
Description copied from interface:Counter
Update the counter byamount
.
-
-