code: async def _on_heartbeat(self, update):
          
  
          name = update['service']
  
          if name not in self.services:
              return
  
          with self._state_lock:
              self.services[name].heartbeat()
docs: Receive a new heartbeat for a service.