Package io.vertx.mutiny.micrometer
Class MetricsService
- java.lang.Object
-
- io.vertx.mutiny.micrometer.MetricsService
-
public class MetricsService extends Object
The metrics service mainly allows to return a snapshot of measured objects.
This service is derived and adapted fromMetricsService
in the vertx-dropwizard-metrics module. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MetricsService>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description MetricsService(io.vertx.micrometer.MetricsService delegate)
MetricsService(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricsService
create(Measured measured)
boolean
equals(Object o)
String
getBaseName()
io.vertx.micrometer.MetricsService
getDelegate()
io.vertx.core.json.JsonObject
getMetricsSnapshot()
io.vertx.core.json.JsonObject
getMetricsSnapshot(String baseName)
int
hashCode()
Set<String>
metricsNames()
static MetricsService
newInstance(io.vertx.micrometer.MetricsService arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MetricsService> __TYPE_ARG
-
-
Constructor Detail
-
MetricsService
public MetricsService(io.vertx.micrometer.MetricsService delegate)
-
MetricsService
public MetricsService(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.micrometer.MetricsService getDelegate()
-
create
public static MetricsService create(Measured measured)
- Parameters:
measured
- the measured object- Returns:
- the metrics service
-
getBaseName
public String getBaseName()
- Returns:
- the base name of the measured object
-
getMetricsSnapshot
public io.vertx.core.json.JsonObject getMetricsSnapshot()
- Returns:
- the map of metrics where the key is the name of the metric (excluding the base name unless for the Vert.x object) and the value is the json data representing that metric
-
getMetricsSnapshot
public io.vertx.core.json.JsonObject getMetricsSnapshot(String baseName)
- Parameters:
baseName
-- Returns:
- the map of metrics where the key is the name of the metric and the value is the json data representing that metric
-
newInstance
public static MetricsService newInstance(io.vertx.micrometer.MetricsService arg)
-
-