Class MetricRegistrySerializer


  • public class MetricRegistrySerializer
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.dslplatform.json.JsonWriter serialize​(MetricSet metricSet)
      Creates a JSON writer, serializes the given metric set into it and returns it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricRegistrySerializer

        public MetricRegistrySerializer()
    • Method Detail

      • serialize

        @Nullable
        public com.dslplatform.json.JsonWriter serialize​(MetricSet metricSet)
        Creates a JSON writer, serializes the given metric set into it and returns it. If the serialized metric-set does not contain samples, the method returns null.
        Parameters:
        metricSet - a metric-set to serialize
        Returns:
        the serialized metric-set or null if no samples were serialized