Package com.wavefront.metrics
Class JsonMetricsGenerator
- java.lang.Object
-
- com.wavefront.metrics.JsonMetricsGenerator
-
public abstract class JsonMetricsGenerator extends Object
Generator of metrics as a JSON node and outputting it to an output stream or returning a json node.- Author:
- Clement Pang (clement@wavefront.com)
-
-
Constructor Summary
Constructors Constructor Description JsonMetricsGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.JsonNodegenerateJsonMetrics(com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics)static com.fasterxml.jackson.databind.JsonNodegenerateJsonMetrics(com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, Map<String,String> pointTags, MetricTranslator metricTranslator)static voidgenerateJsonMetrics(OutputStream outputStream, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, MetricTranslator metricTranslator)static voidwriteJson(com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics)static voidwriteJson(com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, Map<String,String> pointTags, MetricTranslator metricTranslator)static voidwriteRegularMetrics(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples)static voidwriteRegularMetrics(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples, Map<String,String> pointTags)static voidwriteRegularMetrics(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples, Map<String,String> pointTags, MetricTranslator metricTranslator)
-
-
-
Method Detail
-
generateJsonMetrics
public static void generateJsonMetrics(OutputStream outputStream, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, MetricTranslator metricTranslator) throws IOException
- Throws:
IOException
-
generateJsonMetrics
public static com.fasterxml.jackson.databind.JsonNode generateJsonMetrics(com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics) throws IOException- Throws:
IOException
-
generateJsonMetrics
public static com.fasterxml.jackson.databind.JsonNode generateJsonMetrics(com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, @Nullable Map<String,String> pointTags, @Nullable MetricTranslator metricTranslator) throws IOException- Throws:
IOException
-
writeJson
public static void writeJson(com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics) throws IOException- Throws:
IOException
-
writeJson
public static void writeJson(com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, @Nullable Map<String,String> pointTags, @Nullable MetricTranslator metricTranslator) throws IOException- Throws:
IOException
-
writeRegularMetrics
public static void writeRegularMetrics(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples) throws IOException- Throws:
IOException
-
writeRegularMetrics
public static void writeRegularMetrics(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples, @Nullable Map<String,String> pointTags) throws IOException- Throws:
IOException
-
writeRegularMetrics
public static void writeRegularMetrics(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples, @Nullable Map<String,String> pointTags, @Nullable MetricTranslator metricTranslator) throws IOException- Throws:
IOException
-
-