Exemplo n.º 1
0
    def processes(self):
        now = unix_utc_now()

        process_info_dict = {}
        for process in self.process_checks:
            process_info_dict[process]  = process_info_collector.check_process(process)
            process_info_dict[process]['time'] = now

        return process_info_dict
Exemplo n.º 2
0
    def processes(self):
        now = unix_utc_now()

        process_info_dict = {}
        for process in self.process_checks:
            process_info_dict[process] = process_info_collector.check_process(
                process)
            process_info_dict[process]['time'] = now

        return process_info_dict
Exemplo n.º 3
0
 def test_process(self):
     for process in self.process_checks:
         process_dict = process_info_collector.check_process(process)
         
         assert 'memory' in process_dict
         assert 'cpu' in process_dict