Package io.vertx.mutiny.micrometer
Class MetricsService
java.lang.Object
io.vertx.mutiny.micrometer.MetricsService
- All Implemented Interfaces:
MutinyDelegate
The metrics service mainly allows to return a snapshot of measured objects.
This service is derived and adapted from
This service is derived and adapted from
MetricsService in the vertx-dropwizard-metrics module.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Nick Scavelli, Joel Takvorian
- See Also:
-
MetricsService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetricsService(io.vertx.micrometer.MetricsService delegate) Create a new instance ofMetricsServicedelegating to the given (non-null) instance ofMetricsService.MetricsService(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsServiceCreates a metric service for a givenMeasuredobject.booleanio.vertx.micrometer.MetricsServiceGet the delegate instance.io.vertx.core.json.JsonObjectWill return the metrics that correspond with themeasuredobject, null if no metrics is available.io.vertx.core.json.JsonObjectgetMetricsSnapshot(String baseName) Will return the metrics that begins with thebaseName, null if no metrics is available.inthashCode()static MetricsServicenewInstance(io.vertx.micrometer.MetricsService delegate) Creates a new instance of theMetricsService.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MetricsService
public MetricsService(io.vertx.micrometer.MetricsService delegate) Create a new instance ofMetricsServicedelegating to the given (non-null) instance ofMetricsService. -
MetricsService
-
-
Method Details
-
getDelegate
public io.vertx.micrometer.MetricsService getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
Creates a metric service for a givenMeasuredobject.- Parameters:
measured- the measured object- Returns:
- the metrics service
-
getBaseName
- Returns:
- the base name of the measured object
-
metricsNames
- Returns:
- the known metrics names by this service
-
getMetricsSnapshot
public io.vertx.core.json.JsonObject getMetricsSnapshot()Will return the metrics that correspond with themeasuredobject, null if no metrics is available.- 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
Will return the metrics that begins with thebaseName, null if no metrics is available.- 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
Creates a new instance of theMetricsService. -
hashCode
public int hashCode() -
equals
-
toString
-