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