Add functionality for counting events
Similar to the existing streams functionality, this patch exposes in quince the ability added to winchester to count filtered events. There are corresponding changes in winchester, quincy, and klugman. Change-Id: Ibad625a59808298e1deadaa66adc0524f63515ba
This commit is contained in:
parent
9158c0b83d
commit
519bbeaab3
@ -88,12 +88,13 @@ class Impl(object):
|
||||
|
||||
def find_events(self, from_datetime=None, to_datetime=None,
|
||||
event_name=None, traits=[],
|
||||
mark=None, limit=None):
|
||||
mark=None, limit=None, count=False):
|
||||
return self.driver.find_events(from_datetime=from_datetime,
|
||||
to_datetime=to_datetime,
|
||||
event_name=event_name,
|
||||
traits=traits,
|
||||
mark=mark, limit=limit)
|
||||
mark=mark, limit=limit,
|
||||
count=count)
|
||||
|
||||
def get_event(self, message_id):
|
||||
return self.driver.get_event_by_message_id(message_id)
|
||||
|
Loading…
Reference in New Issue
Block a user