Sha256: 282e0f136e3b24ad2cd08b99cbf887b265a38c9e15601f6146b292cc6716ddb9
Contents?: true
Size: 312 Bytes
Versions: 1
Compression:
Stored size: 312 Bytes
Contents
module Prosperity class Extractors::Count < Extractors::Base def key "count" end def to_a data = [] period.each_period(start_time, end_time) do |start_time| data << @metric.scope.where("#{metric.group_by} < ?", start_time).count end data end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prosperity-0.0.1 | lib/prosperity/extractors/count.rb |