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
stringthe 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
arraythe 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
arraythe known metrics names by this service