Alerting history

Hi all,

I’m just trying to work out some basics stats for our team. I’m trying to find out how many alerts have been sent to our Microsoft teams channel each month. Just as a very crude way to give us some stats on the number alerts triggered each month.

I’ve hit 2 problems I need a bit of help with please:
1, How can I retrieve all alerts via the API. I’m just trying to gain a count of numbers alerts in the month
2, I don’t appear to be able to go back in time to view all alerts, it appears I can only go back 7 days? Can I change how much alerting history information I can keep?

Many thanks!!