Afterward, she chose to feed her pigs with her husband in the Lima suburb where they reside.
They climbed on to a tree, Rivera told RPP radio - but the trunk broke.
The 32-year-old and her husband were taken to hospital and are both recovering, according to Peruvian media. They held on to each other's hands but Chamorro eventually lost his grip and got separated.
Heavy rains in Peru have caused devastation in several parts of the country, with thousands of people left homeless due to severe floods and landslides. Covered in mud and enveloped in debris, the woman crawls her way to safety as her surroundings are swept away.
"There's a person there!" an onlooker cried out. She sustained only minor injuries.
The government has declared states of emergencies in hundreds of districts across the country, and on Friday it announced plans to increase the state's budget by $1.35bn to help with recovery efforts.
"There is a lot of damage but we can overcome them", President Pedro Pablo Kuczynski said on Thursday as he toured an affected community in Lima near the Huaycoloro river which overflowed.
Authorities expected the intense rains to continue for another two weeks, CNN reported.