def METHOD_NAME(self):
    try:
        resp = self.http.get(self.url)
        resp.raise_for_status()
        self.submit_service_checks(AgentCheck.OK)
    except (requests.HTTPError, requests.ConnectionError) as e:
        self.warning(
            "Couldn't connect to URL: %s with exception: %s. Please verify the address is reachable", self.url, e
        )
        self.submit_service_checks(AgentCheck.CRITICAL)
        raise e
    return resp.content