Automating Patching Failover

This client is looking to implement automated patching of their servers. They would like to know if Milestone has input on any of the following:

Have you seen other environments successfully automate this failover and reboot process, particularly leveraging enterprise patching tools like Tanium?
Are there supported or recommended methods to programmatically:
Check for active user sessions
Monitor recording server or failover state
Gracefully stop Milestone services
Does Milestone provide APIs, CLI tools, or service-level indicators that can reliably replace GUI-based validation?
Are there any timing sensitivities or risks around failover detection that we should account for when automating this?
Do you have any best practices or reference implementations for building a fully unattended workflow?