Class: NewRelic::MetricParser::ActiveMerchant

Inherits:
NewRelic::MetricParser show all
Defined in:
lib/new_relic/metric_parser/active_merchant.rb

Constant Summary

Constants inherited from NewRelic::MetricParser

SEPARATOR

Instance Attribute Summary

Attributes inherited from NewRelic::MetricParser

#name

Instance Method Summary collapse

Methods inherited from NewRelic::MetricParser

#apdex_metric_path, #base_metric_name, #call_rate_suffix, #category, #developer_name, for_metric_named, #initialize, #is_controller?, #is_transaction?, #last_segment, #legend_name, #method_missing, parse, #pie_chart_label, #segment_0, #segment_1, #segment_2, #segment_3, #segment_4, #segment_5, #segments, #summary_metrics, #tooltip_name, #url

Constructor Details

This class inherits a constructor from NewRelic::MetricParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NewRelic::MetricParser

Instance Method Details

#gateway_nameObject



13
14
15
16
# File 'lib/new_relic/metric_parser/active_merchant.rb', line 13

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

#is_active_merchant?Boolean

Returns:

  • (Boolean)


3
# File 'lib/new_relic/metric_parser/active_merchant.rb', line 3

def is_active_merchant?; true; end

#is_active_merchant_gateway?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/new_relic/metric_parser/active_merchant.rb', line 5

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

#is_active_merchant_operation?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/new_relic/metric_parser/active_merchant.rb', line 9

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

#operation_nameObject



18
19
20
# File 'lib/new_relic/metric_parser/active_merchant.rb', line 18

def operation_name
  segments[2]
end

#short_nameObject



22
23
24
# File 'lib/new_relic/metric_parser/active_merchant.rb', line 22

def short_name
  segments[2]
end