How to create an alert when all values returned by a query are bellow of a threshold

Hello everybody,

I have a Prometheus query which returns the usage of some datastores in a time series format. I want to create an alert when “all” returned values of the datastore are bellow/above a threshold. So far, the provided alerting functions do not help me. Grafana version is 8.3.3.
Any help will be really appreciated !