def send_to_pub_sub()

in loggen/message_generator.py [0:0]


def send_to_pub_sub(message):
  """ Sends the provided payload as JSON to Pub/Sub.
  :param message: the Event information payload
  :return: the published message future.
  """
  return _PUBLISHER.publish(_TOPIC_PATH,
                            data=json.dumps(message).encode('utf-8'))