new MetricsService()
The metrics service mainly allows to return a snapshot of measured objects.
- Source:
Methods
-
getBaseName(measured, measured) → {string}
-
Parameters:
Name Type Description measured
the measure object measured
Measured - Source:
Returns:
the base name of the measured object- Type
- string
-
getMetricsSnapshot(o) → {Object}
-
Will return the metrics that correspond with this 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.
Parameters:
Name Type Description o
Measured - Source:
Returns:
the map of metrics where the key is the name of the metric (excluding the base name) and the value is the json data representing that metric- Type
- Object