| Package | Description |
|---|---|
| org.eclipse.microprofile.metrics |
MicroProfile Metrics
|
| Modifier and Type | Method and Description |
|---|---|
SortedMap<MetricID,Counter> |
MetricRegistry.getCounters()
Returns a map of all the counters in the registry and their
MetricIDs. |
SortedMap<MetricID,Counter> |
MetricRegistry.getCounters(MetricFilter filter)
Returns a map of all the counters in the registry and their
MetricIDs which match the given filter. |
SortedMap<MetricID,Gauge> |
MetricRegistry.getGauges()
Returns a map of all the gauges in the registry and their
MetricIDs. |
SortedMap<MetricID,Gauge> |
MetricRegistry.getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their
MetricIDs which match the given filter. |
SortedMap<MetricID,Histogram> |
MetricRegistry.getHistograms()
Returns a map of all the histograms in the registry and their
MetricIDs. |
SortedMap<MetricID,Histogram> |
MetricRegistry.getHistograms(MetricFilter filter)
Returns a map of all the histograms in the registry and their
MetricIDs which match the given filter. |
SortedSet<MetricID> |
MetricRegistry.getMetricIDs()
Returns a set of the
MetricIDs of all the metrics in the registry. |
Map<MetricID,Metric> |
MetricRegistry.getMetrics()
Returns a map of all the metrics in the registry and their
MetricIDs at query time. |
<T extends Metric> |
MetricRegistry.getMetrics(Class<T> ofType,
MetricFilter filter)
Returns a map of all the metrics in the registry and their
MetricIDs which match the given filter and
which are assignable to the provided type. |
SortedMap<MetricID,Metric> |
MetricRegistry.getMetrics(MetricFilter filter)
Returns a map of all the metrics in the registry and their
MetricIDs which match the given filter. |
SortedMap<MetricID,Timer> |
MetricRegistry.getTimers()
Returns a map of all the timers in the registry and their
MetricIDs. |
SortedMap<MetricID,Timer> |
MetricRegistry.getTimers(MetricFilter filter)
Returns a map of all the timers in the registry and their
MetricIDs which match the given filter. |
| Modifier and Type | Method and Description |
|---|---|
int |
MetricID.compareTo(MetricID other)
Compares two MetricID objects through the following steps:
Compares the names of the two MetricIDs lexicographically. If the names are equal: Compare the number of tags. If the tag lengths are equal: Compare the Tags (sorted by the Tag's key value) a) Compare the Tag names/keys lexicographically b) If keys are equal, compare the Tag values lexicographically |
Counter |
MetricRegistry.counter(MetricID metricID)
|
<T extends Number> |
MetricRegistry.gauge(MetricID metricID,
Supplier<T> supplier)
|
<T,R extends Number> |
MetricRegistry.gauge(MetricID metricID,
T object,
Function<T,R> func)
|
Counter |
MetricRegistry.getCounter(MetricID metricID)
|
Gauge<?> |
MetricRegistry.getGauge(MetricID metricID)
|
Histogram |
MetricRegistry.getHistogram(MetricID metricID)
|
Metric |
MetricRegistry.getMetric(MetricID metricID)
|
<T extends Metric> |
MetricRegistry.getMetric(MetricID metricID,
Class<T> asType)
|
Timer |
MetricRegistry.getTimer(MetricID metricID)
|
Histogram |
MetricRegistry.histogram(MetricID metricID)
|
boolean |
MetricFilter.matches(MetricID metricID,
Metric metric)
Returns
true if the metric matches the filter; false otherwise. |
boolean |
MetricRegistry.remove(MetricID metricID)
Removes the metric with the given MetricID
|
Timer |
MetricRegistry.timer(MetricID metricID)
|
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.