Resolve alert after X second(s)/minute(s)

Hi, I tried to look for the answer online to my question below but couldn’t find one.

Is it possible to resolve alert if it’s been “below threshold” (i.e. stable) after a period of time (e.g. 5 minutes)? Sometimes the alert condition may be on and off so I wonder if alert can be resolved when the condition is stable.

Thanks!