Class: Datadog::Statsd::Schema::Analyzer::JSONFormatter

Inherits:
BaseFormatter
  • Object
show all
Defined in:
lib/datadog/statsd/schema/analyzer.rb

Overview

——————————————————————————————————————————————————————————————————————————————————————————————————————————————- JSON Formatter classes ——————————————————————————————————————————————————————————————————————————————————————————————————————————————-

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from BaseFormatter

#analysis_result, #color, #metrics_analysis, #stderr, #stdout, #total_possible_custom_metrics, #total_unique_metrics

Instance Method Summary collapse

Methods inherited from BaseFormatter

#initialize

Constructor Details

This class inherits a constructor from Datadog::Statsd::Schema::Analyzer::BaseFormatter

Instance Method Details

#renderObject

Since:

  • 0.1.0



461
462
463
# File 'lib/datadog/statsd/schema/analyzer.rb', line 461

def render
  JSON.pretty_generate(analysis_result.to_h)
end