public static class MetricDumpSerialization.MetricDumpSerializer extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Serializes the given metrics and returns the resulting byte array.
public MetricDumpSerialization.MetricSerializationResult serialize(Map<Counter,Tuple2<QueryScopeInfo,String>> counters, Map<Gauge<?>,Tuple2<QueryScopeInfo,String>> gauges, Map<Histogram,Tuple2<QueryScopeInfo,String>> histograms, Map<Meter,Tuple2<QueryScopeInfo,String>> meters)
Metric accessed in this method throw an exception it will be omitted
from the returned
If the serialization of any primitive or String fails then the returned
MetricDumpSerialization.MetricSerializationResult is partially corrupted. Such a result can be deserialized
only metrics that were fully serialized before the failure will be returned.
counters- counters to serialize
gauges- gauges to serialize
histograms- histograms to serialize
public void close()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.