Sha256: 51d8d69180a4fe73dd12c7cf8b801f21f0d4b4a8efd4b452f59cfa16850a70e0
Contents?: true
Size: 520 Bytes
Versions: 9
Compression:
Stored size: 520 Bytes
Contents
class MetricFu::StatsHotspot < MetricFu::Hotspot COLUMNS = %w{stat_name stat_value} def columns COLUMNS end def name :stats end def map_strategy :absent end def reduce_strategy :absent end def score_strategy :absent end 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 end
Version data entries
9 entries across 9 versions & 3 rubygems