Class DefaultMeter
- java.lang.Object
-
- io.micrometer.core.instrument.AbstractMeter
-
- io.micrometer.core.instrument.internal.DefaultMeter
-
- All Implemented Interfaces:
Meter
public class DefaultMeter extends AbstractMeter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micrometer.core.instrument.Meter
Meter.Builder, Meter.Id, Meter.Type
-
-
Constructor Summary
Constructors Constructor Description DefaultMeter(Meter.Id id, Meter.Type type, java.lang.Iterable<Measurement> measurements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Meter.Type
getType()
java.lang.Iterable<Measurement>
measure()
Get a set of measurements.-
Methods inherited from class io.micrometer.core.instrument.AbstractMeter
getId
-
-
-
-
Constructor Detail
-
DefaultMeter
public DefaultMeter(Meter.Id id, Meter.Type type, java.lang.Iterable<Measurement> measurements)
-
-
Method Detail
-
measure
public java.lang.Iterable<Measurement> measure()
Description copied from interface:Meter
Get a set of measurements. Should always return the same number of measurements and in the same order, regardless of the level of activity or the lack thereof.- Returns:
- The set of measurements that represents the instantaneous value of this meter.
-
getType
public Meter.Type getType()
-
-