Class: MetricFu::StatsHotspot
- Inherits:
-
Hotspot
- Object
- Hotspot
- MetricFu::StatsHotspot
show all
- Defined in:
- lib/metric_fu/metrics/stats/hotspot.rb
Constant Summary
collapse
- COLUMNS =
%w{stat_name stat_value}
Instance Method Summary
collapse
Methods inherited from Hotspot
analyzer_for_metric, analyzers, #get_mean, #map, #mapping_strategies, metric, #not_implemented, #present_group, #reduce, #score
Instance Method Details
#columns ⇒ Object
4
5
6
|
# File 'lib/metric_fu/metrics/stats/hotspot.rb', line 4
def columns
COLUMNS
end
|
#generate_records(data, table) ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/metric_fu/metrics/stats/hotspot.rb', line 24
def generate_records(data, table)
return if data == nil
data.each do |key, value|
next if value.is_a?(Array)
table << {
"metric" => name,
"stat_name" => key,
"stat_value" => value
}
end
end
|
#map_strategy ⇒ Object
12
13
14
|
# File 'lib/metric_fu/metrics/stats/hotspot.rb', line 12
def map_strategy
:absent
end
|
#name ⇒ Object
8
9
10
|
# File 'lib/metric_fu/metrics/stats/hotspot.rb', line 8
def name
:stats
end
|
#reduce_strategy ⇒ Object
16
17
18
|
# File 'lib/metric_fu/metrics/stats/hotspot.rb', line 16
def reduce_strategy
:absent
end
|
#score_strategy ⇒ Object
20
21
22
|
# File 'lib/metric_fu/metrics/stats/hotspot.rb', line 20
def score_strategy
:absent
end
|