def send_event()

in event-generator/advanced/game.py [0:0]


    def send_event(self, event_type, event_properties={}):
        if not "GameId" in event_properties:
            event_properties["GameId"] = self.game_id

        future = self.publisher.publish(
            self.topic_path,
            json.dumps(event_properties).encode("utf-8"),
            PinballEventType=event_type,
            MachineId=self.machine_id,
            Simulated=str(self.simulated),
            Timestamp=datetime.datetime.now().isoformat(),
        )
        return(future.result())