def METHOD_NAME(self):
    update_agent_status()
    self.assertFalse(is_alive(self.agent_id, int(time())))
    data = {
        "type": 1,
        "detail": {
            "agentId": 515,
            "memory": '{"total":"1.778GB","use":"295.194MB","rate":16}',
            "cpu": '{"rate":36}',
            "disk": '{"rate":72}',
            "returnQueue": 0,
        },
    }
    data["detail"]["agentId"] = self.agent_id
    self.agent_report(data, agentId=self.agent_id)
    self.assertTrue(is_alive(self.agent_id, int(time())))
    update_agent_status()
    cache.delete(f"heartbeat-{self.agent_id}")
    update_agent_status()
    self.assertFalse(is_alive(self.agent_id, int(time())))
    data = {
        "type": 1,
        "detail": {
            "agentId": 515,
            "memory": '{"total":"1.778GB","use":"295.194MB","rate":16}',
            "cpu": '{"rate":36}',
            "disk": '{"rate":72}',
            "returnQueue": 0,
        },
    }
    data["detail"]["agentId"] = self.agent_id
    self.agent_report(data, agentId=self.agent_id)
    self.assertTrue(is_alive(self.agent_id, int(time())))
    self.assertEqual(
        IastHeartbeat.objects.get(agent_id=self.agent_id).cpu,
        data["detail"]["cpu"],
    )
    self.assertEqual(
        IastHeartbeat.objects.get(agent_id=self.agent_id).memory,
        data["detail"]["memory"],
    )
    self.assertEqual(
        IastHeartbeat.objects.get(agent_id=self.agent_id).disk,
        data["detail"]["disk"],
    )