Package com.wavefront.ingester
Class ReportMetricDecoder
- java.lang.Object
-
- com.wavefront.ingester.ReportMetricDecoder
-
- All Implemented Interfaces:
ReportableEntityDecoder<String,ReportMetric>
- Direct Known Subclasses:
GraphiteReportMetricDecoder
public class ReportMetricDecoder extends Object implements ReportableEntityDecoder<String,ReportMetric>
Graphite decoder that takes in a point of the type: [metric] [value] [timestamp] [annotations]- Author:
- Clement Pang (clement@wavefront.com).
-
-
Constructor Summary
Constructors Constructor Description ReportMetricDecoder(Supplier<String> hostNameSupplier, List<String> customSourceTags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(String msg, List<ReportMetric> 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, decode
-
-
-
-
Method Detail
-
decode
public void decode(String msg, List<ReportMetric> out, String customerId, 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,ReportMetric>- 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.
-
-