def AddEvent(self, event=None, **kw):
    if event is None:
      event = analysis_pb2.Event(**kw)

    # Push the serialized event proto on the heap to save memory
    heapq.heappush(self.heap, (event.timestamp, event.SerializeToString()))
    self.dirty = True
    self.size += 1
Add the event protobuf to the series.
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/timeline.py/GRRTimeSeries.AddEvent