public interface Meter
Provides instruments used to record measurements which are aggregated to metrics.
Instruments are obtained through builders provided by this interface.
-
Method Summary
Modifier and TypeMethodDescriptioncounterBuilder(String name) voidforEachAttribute(BiConsumer<String, String> biConsumer) Applies the consumer for each meter attribute.gaugeBuilder(String name) getName()upDownCounterBuilder(String name)
-
Method Details
-
getName
String getName()- Returns:
- name of the meter.
-
getDescription
String getDescription()- Returns:
- description of the meter.
-
forEachAttribute
Applies the consumer for each meter attribute.- Parameters:
biConsumer- theBiConsumerto apply for each attribute.
-
upDownCounterBuilder
- Parameters:
name- the name of the instrument.- Returns:
- the
LongUpDownCounterBuilder
-
counterBuilder
- Parameters:
name- the name of the instrument.- Returns:
- the
LongCounterBuilder
-
gaugeBuilder
- Parameters:
name- the name of the gauge- Returns:
- the
LongGaugeBuilder
-