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