I'm using SQL Server replication to mirror a few tables from an on-premises SQL Server instance to an Azure SQL database. We had an issue where the replication encountered an error, and we incorrectly assumed that the data in the read-only replica was current. I'm trying to setup an alert system that will notify me if the replica database is more than 30 minutes out of sync with the distributor.
In Replication Monitor, I can see the "Last Synchronization", but that timestamp doesn't seem to be in any of the
dbo.MS* system tables on Azure SQL. I'm looking to get this information from the subscriber instead of the distributor.