class LogfileInterval::Aggregator::Pxx
Public Class Methods
new(options)
click to toggle source
Calls superclass method
# File lib/vpsb_client/datafiles/pxx_aggregator.rb, line 4 def initialize(options) super @val = PxxBuckets.new(options) end
Public Instance Methods
add(value, group_by = nil)
click to toggle source
# File lib/vpsb_client/datafiles/pxx_aggregator.rb, line 9 def add(value, group_by = nil) raise NotImplementedError if group_by @val.increment(value) end
single_value?()
click to toggle source
# File lib/vpsb_client/datafiles/pxx_aggregator.rb, line 18 def single_value? false end
value(group)
click to toggle source
# File lib/vpsb_client/datafiles/pxx_aggregator.rb, line 14 def value(group) @val.value(group.to_f / 100.0) end