Sha256: a389767a1ef5cfcb8e06104ef74ec0dfe77a5ff7c664e91ca2ffcc692e2bcfbe
Contents?: true
Size: 916 Bytes
Versions: 73
Compression:
Stored size: 916 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. class NewRelic::MetricParser::Database < NewRelic::MetricParser::MetricParser def is_database?; true; end def database segments[1] end def operation op = segments.last case when op == 'Join Table Columns' op.upcase when op == 'all' op else op.split(' ').last.upcase end end def developer_name if segments.size == 3 "#{database} - #{operation}" else operation end end def legend_name if all? 'Database' else super end end def tooltip_name if all? 'all SQL execution' else super end end private def all? name == 'Database/all' || name == 'Database/allWeb' || name == 'Database/allOther' end end
Version data entries
73 entries across 73 versions & 2 rubygems