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 java.lang.Object implements MetricsCaptor.GaugeBuilder
-
Field Summary
Fields Modifier and Type Field Description protected io.micrometer.core.instrument.MeterRegistry
meterRegistry
-
Constructor Summary
Constructors Modifier Constructor Description protected
MicroGaugeBuilder(io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.String name, java.lang.Object obj, java.util.function.ToDoubleFunction<java.lang.Object> f)
-
Method Summary
Modifier and Type Method Description GaugeFacade
build()
Build the gauge.MetricsCaptor.GaugeBuilder
description(java.lang.String desc)
Add the description.MetricsCaptor.GaugeBuilder
tag(java.lang.String key, java.lang.String value)
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, java.lang.String name, java.lang.Object obj, java.util.function.ToDoubleFunction<java.lang.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.
-