Class: Leafy::Json::MetricsWriter

Inherits:
JsonWriter show all
Defined in:
lib/leafy/json/metrics_writer.rb

Instance Method Summary collapse

Methods inherited from JsonWriter

#data, #to_json

Constructor Details

#initializeMetricsWriter

Returns a new instance of MetricsWriter.



13
14
15
16
17
18
19
# File 'lib/leafy/json/metrics_writer.rb', line 13

def initialize
  super( # make this configurable
        MetricsModule.new(TimeUnit::SECONDS,
                          TimeUnit::SECONDS,
                          true,
                          MetricFilter::ALL) )
end