The metrics service mainly allows to return a snapshot of measured objects.
package |
Default |
---|
__construct()
create( $arg0) : \io\vertx\jphp\ext\dropwizard\MetricsService
getBaseName( $arg0) : string
Measured
string
the base name of the measured object
getMetricsSnapshot( $arg0) : array
Note: in the case of scaled servers, the JsonObject returns an aggregation of the metrics as the dropwizard backend reports to a single server.
param $measured [Measured] getMetricsSnapshot($measured)
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.
param $baseName [string] getMetricsSnapshot($baseName)
string | Measured
array
the map of metrics where the key is the name of the metric (excluding the base name unless for the Vert.x object) and the value is the json data representing that metric
metricsNames() : array
array
the known metrics names by this service