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,
|
def find_events(self, from_datetime=None, to_datetime=None,
|
||||||
event_name=None, traits=[],
|
event_name=None, traits=[],
|
||||||
mark=None, limit=None):
|
mark=None, limit=None, count=False):
|
||||||
return self.driver.find_events(from_datetime=from_datetime,
|
return self.driver.find_events(from_datetime=from_datetime,
|
||||||
to_datetime=to_datetime,
|
to_datetime=to_datetime,
|
||||||
event_name=event_name,
|
event_name=event_name,
|
||||||
traits=traits,
|
traits=traits,
|
||||||
mark=mark, limit=limit)
|
mark=mark, limit=limit,
|
||||||
|
count=count)
|
||||||
|
|
||||||
def get_event(self, message_id):
|
def get_event(self, message_id):
|
||||||
return self.driver.get_event_by_message_id(message_id)
|
return self.driver.get_event_by_message_id(message_id)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = quince
|
name = quince
|
||||||
version = 0.2
|
version = 0.3
|
||||||
author = Dark Secret Software Inc.
|
author = Dark Secret Software Inc.
|
||||||
author-email = admin@darksecretsoftware.com
|
author-email = admin@darksecretsoftware.com
|
||||||
summary = Default implementation for Quincy
|
summary = Default implementation for Quincy
|
||||||
|
Loading…
Reference in New Issue
Block a user