Sha256: b06f836f5a0807e2a8cf379e04e4de9cfe4344e178a62961cdccd3d8571e2c4f
Contents?: true
Size: 629 Bytes
Versions: 18
Compression:
Stored size: 629 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
18 entries across 18 versions & 1 rubygems