There is actually no API for this function, so what I see as a possibility would be to configure Meraki alerts for AP disconnections or VPN tunnel failures and send them to a webhook or monitoring system.
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.