Rollup of the database_state column of the sys.dm_hadr_database_replica_states dynamic management view:
0 : In progress. At least one joined database has a database state other than ONLINE 
(database_state is not 0).
1 : Online. All the joined databases have a database state of ONLINE (database_state is 0).