def add_event(self, event, timestamp=None,
            event_increment=True, ts_increment=True):
        if timestamp is None:
            timestamp = int(time.time())

        event['ts'] = timestamp
        if event_increment:
            self.redis_conn.zadd("data_" + self.cat_id,  json.dumps(event), timestamp)
        if ts_increment:
            self.redis_conn.hincrby("counter_" + self.cat_id, timestamp, 1)
Add an event to the event list.
dataset/ETHPy150Open gmcquillan/firetower/firetower/category.py/Events.add_event