Class MicrometerMetricsCaptor.MicroGaugeBuilder
java.lang.Object
org.springframework.integration.support.management.micrometer.MicrometerMetricsCaptor.MicroGaugeBuilder
- All Implemented Interfaces:
MetricsCaptor.GaugeBuilder
- Enclosing class:
- MicrometerMetricsCaptor
protected static class MicrometerMetricsCaptor.MicroGaugeBuilder
extends Object
implements MetricsCaptor.GaugeBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.micrometer.core.instrument.MeterRegistry
-
Constructor Summary
ModifierConstructorDescriptionprotected
MicroGaugeBuilder
(io.micrometer.core.instrument.MeterRegistry meterRegistry, String name, Object obj, ToDoubleFunction<Object> f) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the gauge.description
(String desc) Add the description.Add a tag.
-
Field Details
-
meterRegistry
protected final io.micrometer.core.instrument.MeterRegistry meterRegistry
-
-
Constructor Details
-
MicroGaugeBuilder
protected MicroGaugeBuilder(io.micrometer.core.instrument.MeterRegistry meterRegistry, String name, Object obj, ToDoubleFunction<Object> f)
-
-
Method Details
-
tag
Description copied from interface:MetricsCaptor.GaugeBuilder
Add a tag.- Specified by:
tag
in interfaceMetricsCaptor.GaugeBuilder
- Parameters:
key
- the key.value
- the value.- Returns:
- the builder.
-
description
Description copied from interface:MetricsCaptor.GaugeBuilder
Add the description.- Specified by:
description
in interfaceMetricsCaptor.GaugeBuilder
- Parameters:
desc
- the description.- Returns:
- the builder.
-
build
Description copied from interface:MetricsCaptor.GaugeBuilder
Build the gauge.- Specified by:
build
in interfaceMetricsCaptor.GaugeBuilder
- Returns:
- the gauge.
-