Alert condition (Grafana 10.0.2)

I set some Kubernetes Prometheus queries and it is not clear how to configure the alert conditions
For example: I want to get an alert in case pods are not available -
metrics: kube_deployment_status_replicas_unavailable{namespace=~“…”} > 0
If I don’t want to use the classic condition which expression can I use to get the alert?