def METHOD_NAME(self):
    data = self._prepare_data()
    if self._role == "server":
        data["sp_end_point"] = self._sp_end_point
    api_point = self._overseer_end_point + "/heartbeat"
    while not self._asked_to_exit:
        self._flag.wait()
        self._rnq(api_point, headers=None, data=data)
        time.sleep(self._heartbeat_interval)