Sha256: 8ee111ff52d2362331350c4ecb904ed210b1e6df51d9153efb44b8ebc51c5e24
Contents?: true
Size: 1.11 KB
Versions: 100
Compression:
Stored size: 1.11 KB
Contents
require 'new_relic/metric_parser' module NewRelic module MetricParser class External < NewRelic::MetricParser::MetricParser def all? host == 'all' || host == 'allWeb' || host == 'allOther' end def hosts_all? library == 'all' end def host segments[1] end def library segments[2] end def operation segments[3] && segments[3..-1].join("/") end def legend_name case when all? "External Services" when hosts_all? "All #{host} calls" else developer_name end end def tooltip_name case when all? "calls to external systems" when hosts_all? "calls to #{host}" else "calls to #{developer_name}" end end def developer_name case when all? 'All External' when hosts_all? host when operation "#{library}[#{host}]: #{operation}" else "#{library}[#{host}]" end end end end end
Version data entries
100 entries across 100 versions & 5 rubygems