Sha256: 44a871bd89b623ed70e4d46aa31332ca3abfd11ef853a2e3964af097769e39d0

Contents?: true

Size: 587 Bytes

Versions: 100

Compression:

Stored size: 587 Bytes

Contents

require 'new_relic/metric_parser'
module NewRelic
  module MetricParser
    class ActiveMerchant < NewRelic::MetricParser::MetricParser

      def is_active_merchant?; true; end

      def is_active_merchant_gateway?
        segments[1] == 'gateway'
      end

      def is_active_merchant_operation?
        segments[1] == 'operation'
      end

      def gateway_name
        # ends in "Gateway" - trim that off
        segments[2][0..-8].titleize
      end

      def operation_name
        segments[2]
      end

      def short_name
        segments[2]
      end

    end
  end
end

Version data entries

100 entries across 100 versions & 5 rubygems

Version Path
wd_newrelic_rpm-3.5.8 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
sundawg_newrelic_rpm-3.5.8.2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
sundawg_newrelic_rpm-3.5.8.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.8.72 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.8.70 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.8.64.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.7.59 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.7.59.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.7.58.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
wd_newrelic_rpm-3.5.6 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.7.57.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.6.55 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.6.48.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.6.46.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.6.42.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.5.39.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
wd_newrelic_rpm-3.5.5 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.5.38 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.5.540.dev vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.5.4.35.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb