Sha256: c4ecc65bac245d8cef4b392600ad9c2947035580aea96d23f88c38d077c405a3

Contents?: true

Size: 452 Bytes

Versions: 32

Compression:

Stored size: 452 Bytes

Contents

class NewRelic::MetricParser::ActiveMerchant < NewRelic::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

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
onyx_newrelic_rpm-2.12.5 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.13.0.beta5 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.13.0.beta4 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.13.0.beta3 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.3 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.2 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.2.beta2 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.2.beta lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.1 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.1.alpha lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.12.0 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.3 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.2 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.2.beta2 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.2.beta lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.1 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.0.beta2 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.11.0.beta lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.10.8 lib/new_relic/metric_parser/active_merchant.rb
newrelic_rpm-2.10.6 lib/new_relic/metric_parser/active_merchant.rb