Sha256: 343012fad586c1b45ce7bd5f05da15730eb300192d46f2c4828bdece9f28b3b4

Contents?: true

Size: 495 Bytes

Versions: 100

Compression:

Stored size: 495 Bytes

Contents

class NewRelic::MetricParser::Solr < NewRelic::MetricParser::MetricParser

  def short_name
    if segments[1] == "org.apache.solr.search.SolrIndexSearcher"
      "SolrIndexSearcher"
    elsif segments[1] =~ /org\.apache\.solr\.handler\.component/
      segments[1].split(".")[-1]
    else
      super
    end
  end

  def legend_name
    if all?
      'Solr'
    else
      super
    end
  end

  def category; 'Solr Query'; end

  private
  def all?
    name == Metric::SOLR_ALL_WEB
  end
end

Version data entries

100 entries across 100 versions & 5 rubygems

Version Path
newrelic_rpm-3.5.4.34 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.4.33 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.4.31.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.4.29.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
ghazel-newrelic_rpm-3.5.4 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.3.25 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.3.24 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.2.17 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.1.14 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.1.14.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.1.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.0.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.1.alpha vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.5.0 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.4.2.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.4.2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.4.2.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.4.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.4.1.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
ghazel-newrelic_rpm-3.4.0.2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb