The metrics service mainly allows to return a snapshot of measured objects.<br/> This service is derived and adapted from <code>MetricsService</code> in the <i>vertx-dropwizard-metrics</i> module.
package |
Default |
---|
__construct()
create( $arg0) : \io\vertx\jphp\micrometer\MetricsService
getBaseName() : string
string
the base name of the measured object
getMetricsSnapshot( $arg0 = null) : array
getMetricsSnapshot()
Will return the metrics that begins with the baseName
, null if no metrics is available.
param $baseName [string] getMetricsSnapshot($baseName)
string
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