Method: NewRelic::Agent::Stats#to_json

Defined in:
lib/new_relic/agent/stats.rb

#to_json(*_) ⇒ Object


62
63
64
65
66
67
68
69
70
71
# File 'lib/new_relic/agent/stats.rb', line 62

def to_json(*_)
  {
    'call_count' => call_count.to_i,
    'min_call_time' => min_call_time.to_f,
    'max_call_time' => max_call_time.to_f,
    'total_call_time' => total_call_time.to_f,
    'total_exclusive_time' => total_exclusive_time.to_f,
    'sum_of_squares' => sum_of_squares.to_f
  }.to_json(*_)
end