code: def announce(self, discovery):
          
          try:
              url = self.__discovery_url()
              logger.debug("making announce request to %s" % (url))
              response = None
              response = self.client.put(url,
                                         data=self.to_json(discovery),
                                         headers={"Content-Type": "application/json"},
                                         timeout=0.8)
  
              if response.status_code is 200:
                  self.last_seen = datetime.now()
          except (requests.ConnectTimeout, requests.ConnectionError):
              logger.debug("announce", exc_info=True)
          finally:
              return response
docs: With the passed in Discovery class, attempt to announce to the host agent.