Пример #1
0
 def get(self, username=None):
     if username is None:
         self.logger.error("Username is missing.")
         self.set_status(500)
         self.set_header("Content-Type", "application/json")
         self.write(json.dumps({'error': "Username is missing."}))
         self.finish()
     else:
         run_background(self.get_role, self.async_callback, (username, ))
Пример #2
0
 def get(self, agent_address, agent_port):
     if agent_address is None or agent_port is None:
         self.set_status(500)
         self.set_header("Content-Type", "application/json")
         if agent_address is None:
             self.logger.error("Agent address is missing.")
             self.write(json.dumps({'error': "Agent address is missing."}))
         else:
             self.logger.error("Agent port is missing.")
             self.write(json.dumps({'error': "Agent port is missing."}))
         self.finish()
     else:
         run_background(self.get_instance, self.async_callback, (
             agent_address,
             agent_port,
         ))
Пример #3
0
 def post(self):
     run_background(self.delete_instance, self.async_callback)
Пример #4
0
 def get(self, agent_address, agent_port):
     run_background(self.get_index, self.async_callback,
                    (agent_address, agent_port))
Пример #5
0
 def post(self, ):
     run_background(self.push_data, self.async_callback)
Пример #6
0
 def post(self, address, port):
     run_background(self.post_checks, self.async_callback, (address, port))
Пример #7
0
 def post(self, username=None):
     run_background(self.post_role, self.async_callback, (username, ))
Пример #8
0
 def get(self):
     run_background(self.get_index, self.async_callback)
Пример #9
0
 def post(self):
     run_background(self.post_login, self.async_callback)
Пример #10
0
 def post(self, agent_address, agent_port):
     run_background(self.post_configuration, self.async_callback,
                    (agent_address, agent_port))
Пример #11
0
 def get(self, agent_address, agent_port):
     run_background(self.get_configuration_file, self.async_callback,
                    (agent_address, agent_port))
Пример #12
0
 def post(self, agent_address, agent_port, category=None):
     run_background(self.post_configuration, self.async_callback,
                    (agent_address, agent_port, category))
Пример #13
0
 def get(self, agent_address, agent_port):
     run_background(self.delete_hba, self.async_callback,
                    (agent_address, agent_port))
Пример #14
0
 def post(self, agent_address=None, agent_port=None):
     run_background(self.post_instance, self.async_callback,
                    (agent_address, agent_port))
Пример #15
0
 def post(self):
     run_background(self.post_register, self.async_callback)
Пример #16
0
 def post(self, agent_address, agent_port):
     run_background(self.post_login, self.async_callback,
                    (agent_address, agent_port))
Пример #17
0
 def get(self):
     run_background(self.get_login, self.async_callback)
Пример #18
0
 def get(self, agent_address, agent_port, mode):
     run_background(self.get_activity_w_b, self.async_callback,
                    (agent_address, agent_port, mode))
Пример #19
0
 def post(self):
     run_background(self.delete_role, self.async_callback)
Пример #20
0
 def get(self, agent_address, agent_port):
     run_background(self.get_notifications, self.async_callback,
                    (agent_address, agent_port))
Пример #21
0
 def get(self, address, port):
     run_background(self.get_alerts, self.async_callback, (address, port))
Пример #22
0
 def get(self):
     run_background(self.get_home, self.async_callback)
Пример #23
0
 def get(self, address, port, check_name):
     run_background(self.get_state_changes, self.async_callback,
                    (address, port, check_name))
Пример #24
0
 def post(self, group_kind):
     run_background(self.delete_group, self.async_callback, (group_kind, ))
Пример #25
0
 def get(self, address, port, check_name):
     run_background(self.get_detail, self.async_callback,
                    (address, port, check_name))
Пример #26
0
 def get(self, group_kind):
     run_background(self.get_all, self.async_callback, (group_kind, ))
Пример #27
0
 def get(self, agent_address, agent_port, probe_name):
     run_background(self.get_data_probe, self.async_callback,
                    (agent_address, agent_port, probe_name))
Пример #28
0
 def post(self, group_kind, group_name=None):
     run_background(self.post_group, self.async_callback, (
         group_kind,
         group_name,
     ))
Пример #29
0
 def get(self, agent_address, agent_port):
     run_background(self.get_dashboard, self.async_callback,
                    (agent_address, agent_port))
Пример #30
0
 def get(self, agent_address, agent_port, metric_name):
     run_background(self.get_data_metric, self.async_callback,
                    (agent_address, agent_port, metric_name))