The metrics service mainly allows to return a snapshot of measured objects.
Constructor and description |
---|
MetricsService
(java.lang.Object delegate) |
Type | Name and description |
---|---|
static MetricsService |
create(Vertx vertx) Creates a metric service for a given Vertx instance. |
java.lang.String |
getBaseName(Measured measured) @param measured the measure object |
java.lang.Object |
getDelegate() |
java.util.Map<java.lang.String, java.lang.Object> |
getMetricsSnapshot(Measured measured) Will return the metrics that correspond with the measured object, null if no metrics is available. |
java.util.Map<java.lang.String, java.lang.Object> |
getMetricsSnapshot(java.lang.String baseName) Will return the metrics that begins with the baseName , null if no metrics is available. |
java.util.Set<java.lang.String> |
metricsNames() @return
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a metric service for a given 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.