Here are some view tables that are going to be in the new release of Monolith. They work with the current release though, so maybe they will be useful for DBAs that have utilized the CLI to get data out of Monolith. The new release will feature an updated Status page that shows the data from these view tables instead of the “last 25 backups”. Edit the DEFINER user as needed.
mysql> show tables;
+-------------------------+
| Tables_in_monolith |
+-------------------------+
| dbs |
| process_exec |
| process_status |
| pruning |
| system |
| users |
| view_daily_result_all |
| view_daily_result_code1 |
| view_daily_result_code2 |
| view_daily_result_code3 |
+-------------------------+
10 rows in set (0.00 sec)
mysql> show create table view_daily_result_all\G
*************************** 1. row ***************************
View: view_daily_result_all
Create View: CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_daily_result_all` AS select `t1`.`id` AS `id`,`t1`.`client_name` AS `client_name`,`t1`.`host` AS `host`,`t2`.`id` AS `process_exec_id`,`t2`.`file_name` AS `file_name`,`t2`.`database_id` AS `database_id`,`t2`.`duration` AS `duration`,`t2`.`file_size` AS `file_size`,`t2`.`process_status_id` AS `process_status_id`,`t2`.`creationDate` AS `creationDate`,`t3`.`description` AS `description` from ((`dbs` `t1` join `process_exec` `t2`) join `process_status` `t3`) where ((`t1`.`id` = `t2`.`database_id`) and (`t2`.`process_status_id` = `t3`.`id`) and (date_format(`t2`.`creationDate`,_latin1'%Y,%m,%e') = curdate())) order by `t2`.`creationDate` desc
1 row in set (0.00 sec)
mysql> show create table view_daily_result_code1\G
*************************** 1. row ***************************
View: view_daily_result_code1
Create View: CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_daily_result_code1` AS select `t1`.`id` AS `id`,`t1`.`client_name` AS `client_name`,`t1`.`host` AS `host`,`t2`.`file_name` AS `file_name`,`t2`.`id` AS `process_exec_id`,`t2`.`database_id` AS `database_id`,`t2`.`duration` AS `duration`,`t2`.`file_size` AS `file_size`,`t2`.`process_status_id` AS `process_status_id`,`t2`.`creationDate` AS `creationDate`,`t3`.`description` AS `description` from ((`dbs` `t1` join `process_exec` `t2`) join `process_status` `t3`) where ((`t1`.`id` = `t2`.`database_id`) and (`t2`.`process_status_id` = `t3`.`id`) and (date_format(`t2`.`creationDate`,_latin1'%Y,%m,%e') = curdate()) and (`t2`.`process_status_id` = 1)) order by `t2`.`creationDate` desc
1 row in set (0.00 sec)
mysql> show create table view_daily_result_code2\G
*************************** 1. row ***************************
View: view_daily_result_code2
Create View: CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_daily_result_code2` AS select `t1`.`id` AS `id`,`t1`.`client_name` AS `client_name`,`t1`.`host` AS `host`,`t2`.`file_name` AS `file_name`,`t2`.`id` AS `process_exec_id`,`t2`.`database_id` AS `database_id`,`t2`.`duration` AS `duration`,`t2`.`file_size` AS `file_size`,`t2`.`process_status_id` AS `process_status_id`,`t2`.`creationDate` AS `creationDate`,`t3`.`description` AS `description` from ((`dbs` `t1` join `process_exec` `t2`) join `process_status` `t3`) where ((`t1`.`id` = `t2`.`database_id`) and (`t2`.`process_status_id` = `t3`.`id`) and (date_format(`t2`.`creationDate`,_latin1'%Y,%m,%e') = curdate()) and (`t2`.`process_status_id` = 2)) order by `t2`.`creationDate` desc
1 row in set (0.00 sec)
mysql> show create table view_daily_result_code3\G
*************************** 1. row ***************************
View: view_daily_result_code3
Create View: CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `view_daily_result_code3` AS select `t1`.`id` AS `id`,`t1`.`client_name` AS `client_name`,`t1`.`host` AS `host`,`t2`.`file_name` AS `file_name`,`t2`.`id` AS `process_exec_id`,`t2`.`database_id` AS `database_id`,`t2`.`duration` AS `duration`,`t2`.`file_size` AS `file_size`,`t2`.`process_status_id` AS `process_status_id`,`t2`.`creationDate` AS `creationDate`,`t3`.`description` AS `description` from ((`dbs` `t1` join `process_exec` `t2`) join `process_status` `t3`) where ((`t1`.`id` = `t2`.`database_id`) and (`t2`.`process_status_id` = `t3`.`id`) and (date_format(`t2`.`creationDate`,_latin1'%Y,%m,%e') = curdate()) and (`t2`.`process_status_id` = 3)) order by `t2`.`creationDate` desc
1 row in set (0.01 sec)