Grafana pause/resume

scenario:
when the alert condition is above 10 min, it should not trigger alert and paused the alert for 7 days
after 7 days, it will check if it is taking more than 10 min, it will Triger alerts and if not it won’t trigger alerts

can anyone help how to make this automate

what version of grafana are you running and are you using legacy alerts or unified alerting