Interface MetricsCaptor.GaugeBuilder
- All Known Implementing Classes:
MicrometerMetricsCaptor.MicroGaugeBuilder
- Enclosing interface:
- MetricsCaptor
public static interface MetricsCaptor.GaugeBuilder
A builder for a gauge.
-
Method Summary
Modifier and Type Method Description GaugeFacade
build()
Build the gauge.MetricsCaptor.GaugeBuilder
description(String desc)
Add the description.MetricsCaptor.GaugeBuilder
tag(String key, 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
GaugeFacade build()Build the gauge.- Returns:
- the gauge.
-