Availability Group State Response
The specifications of the availability group state
Properties
Current Always On availability groups role of the availability group replica.
Whether a secondary replica is currently connected to the primary replica.
Text description of the last connection error of the availability group replica.
Date and time timestamp indicating when the last connect error occurred.
Current operational state of the availability group replica
Recovery health of the availability group replica.
Reflects a rollup of the database synchronization state (synchronization_state) of all joined availability databases (also known as replicas) and the availability mode of the replica (synchronous-commit or asynchronous-commit mode). The rollup will reflect the least healthy accumulated state the databases on the replica.