MetricsService

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

Methods

__construct

__construct() 

Creates a metric service for a given object.

create( $arg0) : \io\vertx\jphp\micrometer\MetricsService
static

Arguments

$arg0

Measured

Response

\io\vertx\jphp\micrometer\MetricsService

the metrics service

getBaseName

getBaseName() : string

Response

string

the base name of the measured object

Will return the metrics that correspond with the <code>measured</code> object, null if no metrics is available.<p/>

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)

Arguments

$arg0

string

Response

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

metricsNames() : array

Response

array

the known metrics names by this service