Returns a new instance of StatsHash.
27 28 29 30
# File 'lib/one_apm/collector/stats_engine/stats_hash.rb', line 27 def initialize(started_at=Time.now) @started_at = started_at.to_f super() { |hash, key| hash[key] = OneApm::Metrics::Stats.new } end