Class MetricRegistrySerializer
- java.lang.Object
-
- co.elastic.apm.agent.report.serialize.MetricRegistrySerializer
-
public class MetricRegistrySerializer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetricRegistrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.dslplatform.json.JsonWriterserialize(MetricSet metricSet)Creates a JSON writer, serializes the given metric set into it and returns it.
-
-
-
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
nullif no samples were serialized
-
-