@GK-6729, From your description, it seems that you want to monitor SQL server failover. If there's any misunderstanding, feel free to let us know.
Based on my research, I find an article describe the steps to monitor SQL Server failover events. We can read it as a reference.
https://solutioncenter.apexsql.com/how-to-monitor-sql-server-failover-events-automatically/
Note: Non-microsoft link, just for the reference.
Hope it can help.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.