lib/norikra/client.rb in norikra-client-0.0.5 vs lib/norikra/client.rb in norikra-client-0.0.6

- old
+ new

@@ -34,12 +34,12 @@ def queries @client.call(:queries) end - def register(query_name, query_expression) - @client.call(:register, query_name, query_expression) + def register(query_name, query_group, query_expression) + @client.call(:register, query_name, query_group, query_expression) end def deregister(query_name) @client.call(:deregister, query_name) end @@ -60,10 +60,10 @@ def event(query_name) @client.call(:event, query_name) end # {'query_name' => [ [time, event], ... ]} - def sweep - @client.call(:sweep) + def sweep(query_group=nil) + @client.call(:sweep, query_group) end end end