public class MetricsServiceImpl extends Object implements MetricsService
| Constructor and Description |
|---|
MetricsServiceImpl(Measured measured) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseName() |
JsonObject |
getMetricsSnapshot()
Will return the metrics that correspond with the
measured object, null if no metrics is available. |
JsonObject |
getMetricsSnapshot(String baseName)
Will return the metrics that begins with the
baseName, null if no metrics is available. |
io.micrometer.core.instrument.MeterRegistry |
getRegistry() |
Set<String> |
metricsNames() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic MetricsServiceImpl(Measured measured)
public String getBaseName()
getBaseName in interface MetricsServicepublic JsonObject getMetricsSnapshot()
MetricsServicemeasured object, null if no metrics is available.getMetricsSnapshot in interface MetricsServicepublic JsonObject getMetricsSnapshot(String baseName)
MetricsServicebaseName, null if no metrics is available.getMetricsSnapshot in interface MetricsServicepublic Set<String> metricsNames()
metricsNames in interface MetricsServicepublic io.micrometer.core.instrument.MeterRegistry getRegistry()
Copyright © 2020. All rights reserved.