public interface MetricsService
| Modifier and Type | Method and Description |
|---|---|
static MetricsService |
create(io.vertx.core.Vertx vertx)
Creates a metric service for a given
Vertx instance. |
String |
getBaseName(io.vertx.core.metrics.Measured measured) |
io.vertx.core.json.JsonObject |
getMetricsSnapshot(io.vertx.core.metrics.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. |
Set<String> |
metricsNames() |
static MetricsService create(io.vertx.core.Vertx vertx)
Vertx instance.vertx - the vertx instanceString getBaseName(io.vertx.core.metrics.Measured measured)
measured - the measure objectio.vertx.core.json.JsonObject getMetricsSnapshot(io.vertx.core.metrics.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.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.Copyright © 2020 Eclipse. All rights reserved.