Package com.wavefront.metrics
Class JsonMetricsParser
- java.lang.Object
-
- com.wavefront.metrics.JsonMetricsParser
-
public class JsonMetricsParser extends Object
Helper methods to turn json nodes into actual Wavefront report points- Author:
- Andrew Kao (andrew@wavefront.com)
-
-
Constructor Summary
Constructors Constructor Description JsonMetricsParser()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ReportHistogrammakeHistogram(String customer, String metric, String host, Map<String,String> annotations, long startMillis, int durationMillis, List<Double> bins, List<Integer> counts)static ReportPointmakeHistogramPoint(String customer, String metric, String host, Map<String,String> annotations, long startMillis, int durationMillis, List<Double> bins, List<Integer> counts)static ReportMetricmakeMetric(String table, String metric, String host, double value, long timestamp)static ReportMetricmakeMetric(String table, String metric, String host, double value, long timestamp, Map<String,String> annotations)static ReportPointmakePoint(String table, String metric, String host, double value, long timestamp)static ReportPointmakePoint(String table, String metric, String host, double value, long timestamp, Map<String,String> annotations)static ReportPointmakePoint(String table, String metric, String host, long value, long timestamp)static ReportPointmakePoint(String table, String metric, String host, long value, long timestamp, Map<String,String> annotations)static ReportPointmakePoint(String table, String metric, String host, String value, long timestamp)static ReportPointmakePoint(String table, String metric, String host, String value, long timestamp, Map<String,String> annotations)static Map<String,String>makeTags(com.fasterxml.jackson.databind.JsonNode tags)static voidprocessValueNode(com.fasterxml.jackson.databind.JsonNode value, String table, String metric, String host, long timestamp, List<ReportMetric> metrics, List<ReportHistogram> histograms, Map<String,String> tags)static voidprocessValueNode(com.fasterxml.jackson.databind.JsonNode value, String table, String metric, String host, long timestamp, List<ReportPoint> points, Map<String,String> tags)Deprecated.static voidreport(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportMetric> metrics, List<ReportHistogram> histograms, String host, long timestamp)static voidreport(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportMetric> metrics, List<ReportHistogram> histograms, String host, long timestamp, Map<String,String> tags)static voidreport(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportPoint> points, String host, long timestamp)Deprecated.static voidreport(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportPoint> points, String host, long timestamp, Map<String,String> tags)Deprecated.
-
-
-
Method Detail
-
report
@Deprecated public static void report(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportPoint> points, String host, long timestamp)
Deprecated.
-
report
public static void report(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportMetric> metrics, List<ReportHistogram> histograms, String host, long timestamp)
-
report
@Deprecated public static void report(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportPoint> points, String host, long timestamp, Map<String,String> tags)
Deprecated.
-
report
public static void report(String table, String path, com.fasterxml.jackson.databind.JsonNode node, List<ReportMetric> metrics, List<ReportHistogram> histograms, String host, long timestamp, Map<String,String> tags)
-
processValueNode
@Deprecated public static void processValueNode(com.fasterxml.jackson.databind.JsonNode value, String table, String metric, String host, long timestamp, List<ReportPoint> points, Map<String,String> tags)
Deprecated.
-
processValueNode
public static void processValueNode(com.fasterxml.jackson.databind.JsonNode value, String table, String metric, String host, long timestamp, List<ReportMetric> metrics, List<ReportHistogram> histograms, Map<String,String> tags)
-
makeHistogramPoint
public static ReportPoint makeHistogramPoint(String customer, String metric, String host, Map<String,String> annotations, long startMillis, int durationMillis, List<Double> bins, List<Integer> counts)
-
makePoint
public static ReportPoint makePoint(String table, String metric, String host, String value, long timestamp)
-
makePoint
public static ReportPoint makePoint(String table, String metric, String host, String value, long timestamp, Map<String,String> annotations)
-
makePoint
public static ReportPoint makePoint(String table, String metric, String host, long value, long timestamp)
-
makePoint
public static ReportPoint makePoint(String table, String metric, String host, long value, long timestamp, Map<String,String> annotations)
-
makePoint
public static ReportPoint makePoint(String table, String metric, String host, double value, long timestamp)
-
makePoint
public static ReportPoint makePoint(String table, String metric, String host, double value, long timestamp, Map<String,String> annotations)
-
makeHistogram
public static ReportHistogram makeHistogram(String customer, String metric, String host, Map<String,String> annotations, long startMillis, int durationMillis, List<Double> bins, List<Integer> counts)
-
makeMetric
public static ReportMetric makeMetric(String table, String metric, String host, double value, long timestamp)
-
makeMetric
public static ReportMetric makeMetric(String table, String metric, String host, double value, long timestamp, Map<String,String> annotations)
-
-