Package com.wavefront.ingester
Class ReportHistogramDecoder
- java.lang.Object
-
- com.wavefront.ingester.ReportHistogramDecoder
-
- All Implemented Interfaces:
ReportableEntityDecoder<String,ReportHistogram>
public class ReportHistogramDecoder extends Object implements ReportableEntityDecoder<String,ReportHistogram>
Decoder that takes in histograms of the type: [BinType] [Timestamp] [Centroids] [Metric] [Annotations]- Author:
- Tim Schmidt (tim@wavefront.com).
-
-
Constructor Summary
Constructors Constructor Description ReportHistogramDecoder()ReportHistogramDecoder(String defaultHostName)ReportHistogramDecoder(Supplier<String> defaultHostNameSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(String msg, List<ReportHistogram> out)Certain decoders support decoding the customer id from the input line itself.voiddecode(String msg, List<ReportHistogram> out, String customerId, IngesterContext ctx)Decode graphite points and dump them into an output array.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wavefront.ingester.ReportableEntityDecoder
decode
-
-
-
-
Method Detail
-
decode
public void decode(String msg, List<ReportHistogram> out, String customerId, @Nullable IngesterContext ctx)
Description copied from interface:ReportableEntityDecoderDecode graphite points and dump them into an output array. The supplied customer id will be set and no customer id extraction will be attempted.- Specified by:
decodein interfaceReportableEntityDecoder<String,ReportHistogram>- Parameters:
msg- Message to parse.out- List to output the parsed point.customerId- The customer id to use as the table for the result ReportPoint.ctx- The ingester context with extra params for decoding.
-
decode
public void decode(String msg, List<ReportHistogram> out)
Description copied from interface:ReportableEntityDecoderCertain decoders support decoding the customer id from the input line itself.- Specified by:
decodein interfaceReportableEntityDecoder<String,ReportHistogram>- Parameters:
msg- Message to parse.out- List to output the parsed point.
-
-