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