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:
Eddie Sheffield 2015-03-20 10:59:47 -04:00
parent 9158c0b83d
commit 519bbeaab3
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -1,6 +1,6 @@
[metadata]
name = quince
version = 0.2
version = 0.3
author = Dark Secret Software Inc.
author-email = admin@darksecretsoftware.com
summary = Default implementation for Quincy