Interface MetricsCaptor.CounterBuilder
- All Known Implementing Classes:
MicrometerMetricsCaptor.MicroCounterBuilder
- Enclosing interface:
- MetricsCaptor
public static interface MetricsCaptor.CounterBuilder
A builder for a counter.
-
Method Summary
Modifier and Type Method Description CounterFacade
build()
Build the counter.MetricsCaptor.CounterBuilder
description(java.lang.String desc)
Add the description.MetricsCaptor.CounterBuilder
tag(java.lang.String key, java.lang.String value)
Add a tag.
-
Method Details
-
tag
Add a tag.- Parameters:
key
- the key.value
- the value.- Returns:
- the builder.
-
description
Add the description.- Parameters:
desc
- the description.- Returns:
- the builder.
-
build
CounterFacade build()Build the counter.- Returns:
- the counter.
-