lib/rhcf/timeseries/manager.rb in rhcf-timeseries-1.0.2 vs lib/rhcf/timeseries/manager.rb in rhcf-timeseries-1.0.3

- old
+ new

@@ -96,12 +96,12 @@ def store_point_value( subject_path, resolution_name, resolution_value, point_value, event_path) @strategy.store_point_value(self, subject_path, resolution_name, resolution_value, point_value, event_path) end - def find(subject, from, to = Time.now, filter = nil) - Rhcf::Timeseries::Query.new(subject, from, to, self, filter) + def find(subject, from, to = Time.now, filter = nil, limit = 1000) + Rhcf::Timeseries::Query.new(subject, from, to, self, filter, limit) end def resolution(id) res = DEFAULT_RESOLUTIONS_MAP[id] # TODO configurable fail ArgumentError, "Invalid resolution name #{id} for this time series" if res.nil? @@ -110,11 +110,11 @@ def resolutions @_resolutions ||= @resolution_ids.map { |id| resolution(id) } end - def crunch_values(subject, resolution_id, point, filter) - @strategy.crunch_values(self, subject, resolution_id, point, filter) + def crunch_values(subject, resolution_id, point, filter, limit = 1000) + @strategy.crunch_values(self, subject, resolution_id, point, filter, limit) end end end end