Sha256: 6ac59d58ea7969e9b48eca3503c2114cbd6983828c374bf6987e44f2cac5cb52
Contents?: true
Size: 983 Bytes
Versions: 18
Compression:
Stored size: 983 Bytes
Contents
require 'new_relic/metric_parser' # OtherTransaction metrics must have at least three segments: /OtherTransaction/<task>/* # Task is "Background", "Resque", "DelayedJob" etc. module NewRelic module MetricParser class OtherTransaction < NewRelic::MetricParser::MetricParser def is_transaction? true end def task segments[1] end def developer_name segments[2..-1].join(NewRelic::MetricParser::MetricParser::SEPARATOR) end def short_name developer_name end def drilldown_url(metric_id) {:controller => '/v2/background_tasks', :action => 'index', :task => task, :anchor => "id=#{metric_id}"} end def path segments[2..-1].join "/" end def summary_metrics if segments.size > 2 %W[OtherTransaction/#{task}/all OtherTransaction/all] else [] end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems