How to get state of alerts are "alerting/firing"

I have some alerts on grafana. I can see easly this alerts on grafana ui. But, when I wanted to get them with api (I used this “/api/alerts/”). But, I cant see all of them. Some alert’s state look “ok” when I look with api. But on grafana ui, state of alerts are “alerting”.
grafana version: “10.1.2”
I cant understand exactly why.
Anyone have a suggestion?

1 Like