Sha256: 86edf6232d443a4ac2b3c8a74651fde30ce722cd8d6d747babb6fc144629ecf8

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

class NewRelic::MetricParser::ActiveRecord < NewRelic::MetricParser
  def is_active_record? ; true; end
  
  def model_class
    return segments[1]
  end

  def is_database?
    true
  end
  def legend_name
    if name == 'ActiveRecord/all'
      'Database'
    else
      super
    end
  end
  def tooltip_name
    if name == 'ActiveRecord/all'
      'all SQL execution'
    else
      super
    end
  end
  def developer_name
    "#{model_class}##{segments.last}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newrelic_rpm-2.13.0.beta5 lib/new_relic/metric_parser/active_record.rb
newrelic_rpm-2.13.0.beta4 lib/new_relic/metric_parser/active_record.rb
newrelic_rpm-2.13.0.beta3 lib/new_relic/metric_parser/active_record.rb