The metrics service mainly allows to return a snapshot of measured objects.
Constructor and description |
---|
MetricsService
(Object delegate) |
Type | Name and description |
---|---|
static MetricsService |
create(Vertx vertx) Creates a metric service for a given io.vertx.groovy.core.Vertx instance. |
String |
getBaseName(Measured measured) @param measured the measure object |
Object |
getDelegate() |
Map<String, Object> |
getMetricsSnapshot(Measured measured) Will return the metrics that correspond with the measured object, null if no metrics is available. |
Map<String, Object> |
getMetricsSnapshot(String baseName) Will return the metrics that begins with the baseName , null if no metrics is available. |
Set<String> |
metricsNames() @return
|
Creates a metric service for a given io.vertx.groovy.core.Vertx instance.
vertx
- the vertx instance
measured
- the measure object Will return the metrics that correspond with the measured
object, null if no metrics is available.
Will return the metrics that begins with the baseName
, null if no metrics is available.
io.vertx:vertx-dropwizard-metrics:3.1.0