How Alerting Rules work

Hi, We evaluate Loki and we check Alerting rule. But we didn’t understand exactly how they work.

It said this on the website:
The ruler is responsible for continually evaluating a set of configurable queries and performing an action based on the result

Our question is every minute it executes this query or it keep metrics on ingestion time?