Package ch.squaredesk.nova.metrics
Class MetricsConverter
- java.lang.Object
-
- ch.squaredesk.nova.metrics.MetricsConverter
-
public class MetricsConverter extends Object
This class takes a dump, generated by Nova's Metrics instance and converts them into a map that can easily be serialized and deserialized. The resulting map contains one entry per metric in the dump, each can be looked up by the Metric name. Additionally, we add the following - timestamp - hostName - hostAddress Every Metric itself is again represented as a Map, one MapEntry per attribute. Additionally, we add - type
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Map<String,Object>>convert(Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric> dump)static Map<String,Map<String,Object>>convert(Map<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Metric> dump, Map<String,Object> additionalAttributes)
-