Sha256: ea63cf67be3f1c838dee6dad7e5cf69061edb7ac1ed8a94c78b1820ea7dd142e

Contents?: true

Size: 684 Bytes

Versions: 100

Compression:

Stored size: 684 Bytes

Contents

class NewRelic::MetricParser::Frontend < NewRelic::MetricParser::MetricParser

=begin
  def action_name
    if segments[-1] =~ /^\(other\)$/
      '(template only)'
    else
      segments[-1]
    end
  end
=end

  def developer_name
    url
    #"#{controller_name}##{action_name}"
  end

  def short_name
    # standard controller actions
    if segments.length > 1
      url
    else
      'All Frontend Urls'
    end
  end

  def url
    '/' + segments[1..-1].join('/')
  end

  # this is used to match transaction traces to controller actions.
  # TT's don't have a preceding slash :P
  def tt_path
    segments[1..-1].join('/')
  end

  def call_rate_suffix
    'rpm'
  end
end

Version data entries

100 entries across 100 versions & 5 rubygems

Version Path
wd_newrelic_rpm-3.5.8 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
sundawg_newrelic_rpm-3.5.8.2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
sundawg_newrelic_rpm-3.5.8.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.8.72 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.8.70 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.8.64.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.7.59 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.7.59.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.7.58.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
wd_newrelic_rpm-3.5.6 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.7.57.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.6.55 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.6.48.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.6.46.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.6.42.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.5.39.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
wd_newrelic_rpm-3.5.5 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.5.38 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.5.540.dev vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb
newrelic_rpm-3.5.4.35.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb