Sha256: bff4159522c46146b94c55c49eba4cda88d4391441ffc6b32c54d3900784a5d2

Contents?: true

Size: 505 Bytes

Versions: 8

Compression:

Stored size: 505 Bytes

Contents

class StatsHotspot < MetricFu::Hotspot

  COLUMNS = %w{stat_name stat_value}

  def columns
    COLUMNS
  end

  def name
    :stats
  end

  def map(row)
    0
  end

  def reduce(scores)
    0
  end

  def score(metric_ranking, item)
    0
  end

  def generate_records(data, table)
    return if data == nil
    data.each do |key, value|
      next if value.kind_of?(Array)
      table << {
        "metric" => name,
        "stat_name" => key,
        "stat_value" => value
      }
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metric_fu-4.4.0 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.3.1 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.3.0 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.2.1 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.2.0 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.1.3 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.1.2 lib/metric_fu/metrics/stats/stats_hotspot.rb
metric_fu-4.1.1 lib/metric_fu/metrics/stats/stats_hotspot.rb