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

Version Path
metric_fu-4.13.0 lib/metric_fu/metrics/stats/hotspot.rb
fastruby-metric_fu-5.0.0 lib/metric_fu/metrics/stats/hotspot.rb
code_metric_fu-4.14.4 lib/metric_fu/metrics/stats/hotspot.rb
code_metric_fu-4.14.3 lib/metric_fu/metrics/stats/hotspot.rb
code_metric_fu-4.14.2 lib/metric_fu/metrics/stats/hotspot.rb
code_metric_fu-4.14.1 lib/metric_fu/metrics/stats/hotspot.rb
code_metric_fu-4.14.0 lib/metric_fu/metrics/stats/hotspot.rb
metric_fu-4.12.0 lib/metric_fu/metrics/stats/hotspot.rb
metric_fu-4.11.4 lib/metric_fu/metrics/stats/hotspot.rb