Sha256: f6228751649a99e6c01b4a7e08a6af82d59e6588e94cb5193b29cedaa0289bfb

Contents?: true

Size: 654 Bytes

Versions: 73

Compression:

Stored size: 654 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::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

73 entries across 73 versions & 2 rubygems

Version Path
newrelic_rpm-3.13.0.299 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.12.1.298 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.12.0.288 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.11.2.286 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.11.1.284 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.11.0.283 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.10.0.279 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.9.275 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.8.273 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.7.266 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.6.257 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.5.251 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.4.245 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.3.241 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.2.239 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.1.236 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.9.0.229 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.8.1.221 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.8.0.218 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb
newrelic_rpm-3.7.3.204 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb