Sha256: 9b7b4654cc4492ac7850aaa0be3001a840450ce084af5308b507952891f45b13

Contents?: true

Size: 590 Bytes

Versions: 73

Compression:

Stored size: 590 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

class NewRelic::MetricParser::DatabasePool < NewRelic::MetricParser::MetricParser

  def developer_name
    segs = segments
    if segs.length > 3
      segs[2,segs.length - 3].join("/")
    else
      name
    end
  end

  def pie_chart_label
    short_name
  end

  def tooltip_name
    developer_name + " " + last_segment
  end

  # class name with/out package name and method name
  def short_name
    developer_name
  end
end

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
newrelic_rpm-3.6.3.106 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.3.105.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.3.104 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.3.103.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.2.96 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.2.90.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.1.88 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.1.87 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.1.86.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.1.85.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.0.83 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.0.78 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb
newrelic_rpm-3.6.0.74.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb