Alert Ok State Change Time

Is it possible to set a time period before the evaluation of an alert results as “Ok”?

I have an alert where if the min of query a is > # for 10 min, alert. I would like to be able to define something similar for the Ok state so that, for example, min of query a < # for 10 min, ok.

no, currently it is not possible,
but you can use the average of the last minutes to get a similar result