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