def __create_events_object(self, event_message, sampling_rate):
        result = Event(base=self.__base_event)
        result.set_message(event_message)
        if sampling_rate != 1.0:
            result.set_sampling_rate(sampling_rate)
        return result
Returns the events object that can be sent to the server for this log to insert the specified message.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogFileProcessor.__create_events_object