Class: NewRelic::MetricParser::MemCache
Constant Summary
SEPARATOR
Instance Attribute Summary
#name
Instance Method Summary
collapse
#apdex_metric_path, #base_metric_name, #call_rate_suffix, #category, for_metric_named, #initialize, #is_controller?, #is_transaction?, #last_segment, #method_missing, parse, #pie_chart_label, #segment_0, #segment_1, #segment_2, #segment_3, #segment_4, #segment_5, #segments, #summary_metrics, #url
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class NewRelic::MetricParser
Instance Method Details
#all? ⇒ Boolean
13
14
15
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 13
def all?
segments[1].index('all') == 0
end
|
#developer_name ⇒ Object
9
10
11
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 9
def developer_name
"MemCache #{segments[1..-1].join '/'}"
end
|
#is_memcache? ⇒ Boolean
2
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 2
def is_memcache?; true; end
|
#legend_name ⇒ Object
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 19
def legend_name
case segments[1]
when 'allWeb'
"MemCache"
when 'allOther'
"Non-web MemCache"
else
"MemCache #{operation} operations"
end
end
|
#operation ⇒ Object
16
17
18
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 16
def operation
all? ? 'All Operations' : segments[1]
end
|
#short_name ⇒ Object
for MemCache metrics, the short name is actually the full name
6
7
8
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 6
def short_name
name
end
|
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/new_relic/metric_parser/mem_cache.rb', line 29
def tooltip_name
case segments[1]
when 'allWeb'
"MemCache calls from web transactions"
when 'allOther'
"MemCache calls from non-web transactions"
else
"MemCache #{operation} operations"
end
end
|