# File lib/new_relic/metric_data.rb, line 53 def to_collector_array(encoder=nil) stat_key = { 'name' => metric_spec.name, 'scope' => metric_spec.scope } [ stat_key, [ int(stats.call_count, stat_key), float(stats.total_call_time, stat_key), float(stats.total_exclusive_time, stat_key), float(stats.min_call_time, stat_key), float(stats.max_call_time, stat_key), float(stats.sum_of_squares, stat_key) ] ] end