Sha256: 25d3fb2fea5a3a0f32bb726a7240abaae679c167435fc3919529f385042e8978

Contents?: true

Size: 746 Bytes

Versions: 66

Compression:

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

66 entries across 66 versions & 2 rubygems

Version Path
newrelic_rpm-3.9.9.275 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.8.273 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.7.266 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.6.257 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.5.251 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.4.245 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.3.241 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.2.239 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.1.236 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.9.0.229 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.8.1.221 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.8.0.218 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.3.204 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.3.199 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.2.195 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.2.192 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.2.190.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.1.188 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.1.182 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-3.7.1.180 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb