Sha256: 9efdde60cd0958efb07ecb8896650b35b946c4ea82f1d7f6d00c82ea3b64063b

Contents?: true

Size: 437 Bytes

Versions: 21

Compression:

Stored size: 437 Bytes

Contents

# OtherTransaction metrics must have at least three segments: /OtherTransaction/<task>/*

class NewRelic::MetricParser::OtherTransaction < NewRelic::MetricParser
  def task
    segments[1]
  end
  
  def developer_name
    segments[2..-1].join(NewRelic::MetricParser::SEPARATOR)
  end
  
  def drilldown_url(metric_id)
    {:controller => '/v2/background_tasks', :action => 'index', :task => task, :anchor => "id=#{metric_id}"}
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
factorylabs-newrelic_rpm-2.10.2.2 lib/new_relic/metric_parser/other_transaction.rb