Sha256: 7f55ebe540bffc93a8f6887f53aca58bf327bc26701e5adfc34b50bf03dbbb97

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

class NewRelic::MetricParser::Database < NewRelic::MetricParser
  def is_database?; true; end

  def database
    segments[1]
  end
  
  def active_record_class
    segments[2].split(' ').first
  end
  
  def operation
    op = segments.last
    op_split = op.split(' ')
    
    return op if op == 'Join Table Columns'
    op_split.last
  end
  
  def developer_name
    (segments[2]) ? "#{segments[1]} - #{segments[2]}" : "#{segments[1]} - unknown" 
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-2.9.9 lib/new_relic/metric_parser/database.rb
newrelic_rpm-2.9.8 lib/new_relic/metric_parser/database.rb
newrelic_rpm-2.9.6 lib/new_relic/metric_parser/database.rb
newrelic_rpm-2.9.5 lib/new_relic/metric_parser/database.rb
newrelic_rpm-2.9.2 lib/new_relic/metric_parser/database.rb
newrelic_rpm-2.9.3 lib/new_relic/metric_parser/database.rb
newrelic_rpm-2.9.4 lib/new_relic/metric_parser/database.rb