Ejemplo n.º 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, ))
Ejemplo n.º 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,
         ))
Ejemplo n.º 3
0
 def post(self):
     run_background(self.delete_instance, self.async_callback)
Ejemplo n.º 4
0
 def get(self, agent_address, agent_port):
     run_background(self.get_index, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 5
0
 def post(self, ):
     run_background(self.push_data, self.async_callback)
Ejemplo n.º 6
0
 def post(self, address, port):
     run_background(self.post_checks, self.async_callback, (address, port))
Ejemplo n.º 7
0
 def post(self, username=None):
     run_background(self.post_role, self.async_callback, (username, ))
Ejemplo n.º 8
0
 def get(self):
     run_background(self.get_index, self.async_callback)
Ejemplo n.º 9
0
 def post(self):
     run_background(self.post_login, self.async_callback)
Ejemplo n.º 10
0
 def post(self, agent_address, agent_port):
     run_background(self.post_configuration, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 11
0
 def get(self, agent_address, agent_port):
     run_background(self.get_configuration_file, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 12
0
 def post(self, agent_address, agent_port, category=None):
     run_background(self.post_configuration, self.async_callback,
                    (agent_address, agent_port, category))
Ejemplo n.º 13
0
 def get(self, agent_address, agent_port):
     run_background(self.delete_hba, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 14
0
 def post(self, agent_address=None, agent_port=None):
     run_background(self.post_instance, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 15
0
 def post(self):
     run_background(self.post_register, self.async_callback)
Ejemplo n.º 16
0
 def post(self, agent_address, agent_port):
     run_background(self.post_login, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 17
0
 def get(self):
     run_background(self.get_login, self.async_callback)
Ejemplo n.º 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))
Ejemplo n.º 19
0
 def post(self):
     run_background(self.delete_role, self.async_callback)
Ejemplo n.º 20
0
 def get(self, agent_address, agent_port):
     run_background(self.get_notifications, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 21
0
 def get(self, address, port):
     run_background(self.get_alerts, self.async_callback, (address, port))
Ejemplo n.º 22
0
 def get(self):
     run_background(self.get_home, self.async_callback)
Ejemplo n.º 23
0
 def get(self, address, port, check_name):
     run_background(self.get_state_changes, self.async_callback,
                    (address, port, check_name))
Ejemplo n.º 24
0
 def post(self, group_kind):
     run_background(self.delete_group, self.async_callback, (group_kind, ))
Ejemplo n.º 25
0
 def get(self, address, port, check_name):
     run_background(self.get_detail, self.async_callback,
                    (address, port, check_name))
Ejemplo n.º 26
0
 def get(self, group_kind):
     run_background(self.get_all, self.async_callback, (group_kind, ))
Ejemplo n.º 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))
Ejemplo n.º 28
0
 def post(self, group_kind, group_name=None):
     run_background(self.post_group, self.async_callback, (
         group_kind,
         group_name,
     ))
Ejemplo n.º 29
0
 def get(self, agent_address, agent_port):
     run_background(self.get_dashboard, self.async_callback,
                    (agent_address, agent_port))
Ejemplo n.º 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))