Sending GET requests every second up to a certain limit as a heartbeat test

My question:
The GET request needs to retry every second up to say 120 seconds at with diminishing frequency. So every second for first 30 seconds then every 5 seconds for remaining time period(90s).

Not really sure how to go about it.

simple request to be repeated.

pm.test('Status 200', function () {;