Class 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)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.JsonNode generateJsonMetrics​(com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics)  
      static com.fasterxml.jackson.databind.JsonNode generateJsonMetrics​(com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, Map<String,​String> pointTags, MetricTranslator metricTranslator)  
      static void generateJsonMetrics​(OutputStream outputStream, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics, MetricTranslator metricTranslator)  
      static void writeJson​(com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean includeVMMetrics, boolean includeBuildMetrics, boolean clearMetrics)  
      static void writeJson​(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 void writeRegularMetrics​(com.wavefront.metrics.JsonMetricsGenerator.Processor processor, com.fasterxml.jackson.core.JsonGenerator json, com.yammer.metrics.core.MetricsRegistry registry, boolean showFullSamples)  
      static void writeRegularMetrics​(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 void writeRegularMetrics​(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)  
    • Constructor Detail

      • JsonMetricsGenerator

        public JsonMetricsGenerator()
    • 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
      • 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