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, wait
create
public MetricsServiceImpl(Measured measured)
public String getBaseName()
getBaseName
in interface MetricsService
public JsonObject getMetricsSnapshot()
MetricsService
measured
object, null if no metrics is available.getMetricsSnapshot
in interface MetricsService
public JsonObject getMetricsSnapshot(String baseName)
MetricsService
baseName
, null if no metrics is available.getMetricsSnapshot
in interface MetricsService
public Set<String> metricsNames()
metricsNames
in interface MetricsService
public io.micrometer.core.instrument.MeterRegistry getRegistry()
Copyright © 2020. All rights reserved.