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, ))
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, ))
def post(self): run_background(self.delete_instance, self.async_callback)
def get(self, agent_address, agent_port): run_background(self.get_index, self.async_callback, (agent_address, agent_port))
def post(self, ): run_background(self.push_data, self.async_callback)
def post(self, address, port): run_background(self.post_checks, self.async_callback, (address, port))
def post(self, username=None): run_background(self.post_role, self.async_callback, (username, ))
def get(self): run_background(self.get_index, self.async_callback)
def post(self): run_background(self.post_login, self.async_callback)
def post(self, agent_address, agent_port): run_background(self.post_configuration, self.async_callback, (agent_address, agent_port))
def get(self, agent_address, agent_port): run_background(self.get_configuration_file, self.async_callback, (agent_address, agent_port))
def post(self, agent_address, agent_port, category=None): run_background(self.post_configuration, self.async_callback, (agent_address, agent_port, category))
def get(self, agent_address, agent_port): run_background(self.delete_hba, self.async_callback, (agent_address, agent_port))
def post(self, agent_address=None, agent_port=None): run_background(self.post_instance, self.async_callback, (agent_address, agent_port))
def post(self): run_background(self.post_register, self.async_callback)
def post(self, agent_address, agent_port): run_background(self.post_login, self.async_callback, (agent_address, agent_port))
def get(self): run_background(self.get_login, self.async_callback)
def get(self, agent_address, agent_port, mode): run_background(self.get_activity_w_b, self.async_callback, (agent_address, agent_port, mode))
def post(self): run_background(self.delete_role, self.async_callback)
def get(self, agent_address, agent_port): run_background(self.get_notifications, self.async_callback, (agent_address, agent_port))
def get(self, address, port): run_background(self.get_alerts, self.async_callback, (address, port))
def get(self): run_background(self.get_home, self.async_callback)
def get(self, address, port, check_name): run_background(self.get_state_changes, self.async_callback, (address, port, check_name))
def post(self, group_kind): run_background(self.delete_group, self.async_callback, (group_kind, ))
def get(self, address, port, check_name): run_background(self.get_detail, self.async_callback, (address, port, check_name))
def get(self, group_kind): run_background(self.get_all, self.async_callback, (group_kind, ))
def get(self, agent_address, agent_port, probe_name): run_background(self.get_data_probe, self.async_callback, (agent_address, agent_port, probe_name))
def post(self, group_kind, group_name=None): run_background(self.post_group, self.async_callback, ( group_kind, group_name, ))
def get(self, agent_address, agent_port): run_background(self.get_dashboard, self.async_callback, (agent_address, agent_port))
def get(self, agent_address, agent_port, metric_name): run_background(self.get_data_metric, self.async_callback, (agent_address, agent_port, metric_name))