Class: NewRelic::MetricParser::OtherTransaction

Inherits:
NewRelic::MetricParser show all
Defined in:
lib/new_relic/metric_parser/other_transaction.rb

Overview

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

Constant Summary

Constants inherited from NewRelic::MetricParser

SEPARATOR

Instance Attribute Summary

Attributes inherited from NewRelic::MetricParser

#name

Instance Method Summary collapse

Methods inherited from NewRelic::MetricParser

#apdex_metric_path, #base_metric_name, #call_rate_suffix, #category, for_metric_named, #initialize, #last_segment, #legend_name, #method_missing, parse, #pie_chart_label, #segment_0, #segment_1, #segment_2, #segment_3, #segment_4, #segment_5, #segments, #short_name, #tooltip_name, #url

Constructor Details

This class inherits a constructor from NewRelic::MetricParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NewRelic::MetricParser

Instance Method Details

#developer_nameObject



8
9
10
# File 'lib/new_relic/metric_parser/other_transaction.rb', line 8

def developer_name
  segments[2..-1].join(NewRelic::MetricParser::SEPARATOR)
end

#drilldown_url(metric_id) ⇒ Object



12
13
14
# File 'lib/new_relic/metric_parser/other_transaction.rb', line 12

def drilldown_url(metric_id)
  {:controller => '/v2/background_tasks', :action => 'index', :task => task, :anchor => "id=#{metric_id}"}
end

#taskObject



4
5
6
# File 'lib/new_relic/metric_parser/other_transaction.rb', line 4

def task
  segments[1]
end