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
onyx_newrelic_rpm-2.12.5 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.3 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.2 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.2.beta2 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.2.beta lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.1 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.1.alpha lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.12.0 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.3 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.2 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.2.beta2 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.2.beta lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.1 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.0.beta2 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.11.0.beta lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.10.8 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.10.6 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.10.5 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.10.4 lib/new_relic/metric_parser/other_transaction.rb
newrelic_rpm-2.10.3 lib/new_relic/metric_parser/other_transaction.rb