public interface MetricRegistry
Modifier and Type | Interface and Description |
---|---|
static interface |
MetricRegistry.SampleListener
Listener to receive samples for a distribution
|
Modifier and Type | Method and Description |
---|---|
MetricRegistry.SampleListener |
registerDistribution(java.lang.String id,
java.lang.String... tagNameValuePairs)
Register a sample distribution.
|
void |
registerGuage(java.lang.String id,
java.util.function.Supplier<java.lang.Number> supplier,
java.lang.String... tagNameValuePairs)
Register a guage using the provided supplier.
|
MetricRegistry.SampleListener registerDistribution(java.lang.String id, java.lang.String... tagNameValuePairs)
MetricRegistry.SampleListener
. Will reuse an existing MetricRegistry.SampleListener
if the distribution already
exists.id
- tagNameValuePairs
- Pairs of tag name and tag value. Number of parameters must be a multiple of 2.void registerGuage(java.lang.String id, java.util.function.Supplier<java.lang.Number> supplier, java.lang.String... tagNameValuePairs)
id
- tagNameValuePairs
- Pairs of tag name and tag value. Number of parameters must be a multiple of 2.supplier
-