vertx / io.vertx.micrometer / MetricsService / getMetricsSnapshot

# getMetricsSnapshot

`abstract fun getMetricsSnapshot(): JsonObject`

Will return the metrics that correspond with the `measured` object, null if no metrics is available.

Return
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

`abstract fun getMetricsSnapshot(baseName: String): JsonObject`

Will return the metrics that begins with the `baseName`, null if no metrics is available.

Return
the map of metrics where the key is the name of the metric and the value is the json data representing that metric