| Constructor and Description |
|---|
MetricsService(MetricsService delegate) |
| Modifier and Type | Method and Description |
|---|---|
static MetricsService |
create(Vertx vertx)
Creates a metric service for a given
Vertx instance. |
String |
getBaseName(Measured measured) |
Object |
getDelegate() |
JsonObject |
getMetricsSnapshot(Measured measured)
Will return the metrics that correspond with the
measured object, null if no metrics is available.
Note: in the case of scaled servers, the JsonObject returns an aggregation of the metrics as the
dropwizard backend reports to a single server. |
JsonObject |
getMetricsSnapshot(String baseName)
Will return the metrics that begins with the
baseName, null if no metrics is available.
Note: in the case of scaled servers, the JsonObject returns an aggregation of the metrics as the
dropwizard backend reports to a single server. |
Set<String> |
metricsNames() |
static MetricsService |
newInstance(MetricsService arg) |
public MetricsService(MetricsService delegate)
public Object getDelegate()
public static MetricsService create(Vertx vertx)
Vertx instance.vertx - the vertx instancepublic String getBaseName(Measured measured)
measured - the measure objectmeasured - public JsonObject getMetricsSnapshot(Measured measured)
measured object, null if no metrics is available.
Note: in the case of scaled servers, the JsonObject returns an aggregation of the metrics as the
dropwizard backend reports to a single server.measured - public JsonObject getMetricsSnapshot(String baseName)
baseName, null if no metrics is available.
Note: in the case of scaled servers, the JsonObject returns an aggregation of the metrics as the
dropwizard backend reports to a single server.baseName - public static MetricsService newInstance(MetricsService arg)
Copyright © 2015. All rights reserved.