public class MetricsService extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<MetricsService> |
__TYPE_ARG |
Constructor and Description |
---|
MetricsService(io.vertx.ext.dropwizard.MetricsService delegate) |
MetricsService(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static MetricsService |
create(Vertx vertx)
Creates a metric service for a given
Vertx instance. |
boolean |
equals(Object o) |
String |
getBaseName(Measured measured) |
io.vertx.ext.dropwizard.MetricsService |
getDelegate() |
io.vertx.core.json.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. |
io.vertx.core.json.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. |
int |
hashCode() |
Set<String> |
metricsNames() |
static MetricsService |
newInstance(io.vertx.ext.dropwizard.MetricsService arg) |
String |
toString() |
public static final TypeArg<MetricsService> __TYPE_ARG
public MetricsService(io.vertx.ext.dropwizard.MetricsService delegate)
public MetricsService(Object delegate)
public io.vertx.ext.dropwizard.MetricsService getDelegate()
public static MetricsService create(Vertx vertx)
Vertx
instance.vertx
- the vertx instancepublic String getBaseName(Measured measured)
measured
- the measure objectpublic io.vertx.core.json.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 io.vertx.core.json.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(io.vertx.ext.dropwizard.MetricsService arg)
Copyright © 2021 Eclipse. All rights reserved.