def open_gather_json(self):
     """
     Abre o JSON das coletas radicais
     clean_time
     :return:
     """
     gather_list = Utils.read_json(Utils.fullpath('dbgrowth_data.json'))
     self.gather_list = gather_list
 def clear_old_errors(self):
     """
     Remove do JSON todos os erros que ja passaram do tempo
     clean_time
     :return:
     """
     if Utils.file_exists_not_empty(Utils.fullpath('alertlog_errors.json')):
         error_list = Utils.read_json(Utils.fullpath('alertlog_errors.json'))
         error_list = [error for error in error_list if not self.error_is_cleared(error['date'])]
         self.error_list = error_list
     else:
         self.error_list = []
     self.write_error_json()
 def build_issues(self):
     json = Utils.read_json(self.config)
     self.warning = json['warning']
     self.critical = json['critical']
     self.ignore = json['ignore']