def commit(self): """ Upload new data to netdata. """ try: print(self._data_stream) except Exception as e: msg.fatal('cannot send data to netdata:', str(e)) self._data_stream = ""