Sha256: 9b6467ce01f7903d016ed3cdd00ad536bc34aa6d7313c507ea96f16a9f15bf73
Contents?: true
Size: 961 Bytes
Versions: 66
Compression:
Stored size: 961 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. require 'new_relic/metric_parser' module NewRelic module MetricParser class ControllerCPU < NewRelic::MetricParser::MetricParser def is_controller_cpu?; true; end def controller_name segments[1..-2].join('/').camelize+"Controller" end def action_name segments[-1] end def developer_name "#{controller_name}##{action_name}" end def base_metric_name "Controller/" + segments[1..-1].join('/') end def short_name # standard controller actions if segments.length > 1 url else 'All Controller Actions' end end def url '/' + segments[1..-1].join('/') end def call_rate_suffix 'rpm' end end end end
Version data entries
66 entries across 66 versions & 2 rubygems