Sha256: 4022b015d9c8deba5e298edfafbcdfa8c7dd32ffe5b8ab6a1272d78bb74bd1df
Contents?: true
Size: 988 Bytes
Versions: 3
Compression:
Stored size: 988 Bytes
Contents
class NewRelic::MetricParser::MemCache < NewRelic::MetricParser def is_memcache?; true; end # for MemCache metrics, the short name is actually # the full name def short_name name end def developer_name "MemCache #{segments[1..-1].join '/'}" end def all? segments[1].index('all') == 0 end def operation all? ? 'All Operations' : segments[1] end def legend_name case segments[1] when 'allWeb' "MemCache" when 'allOther' "Non-web MemCache" else "MemCache #{operation} operations" end end def tooltip_name case segments[1] when 'allWeb' "MemCache calls from web transactions" when 'allOther' "MemCache calls from non-web transactions" else "MemCache #{operation} operations" end end def developer_name case segments[1] when 'allWeb' "Web MemCache" when 'allOther' "Non-web MemCache" else "MemCache #{operation}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems