def main(argv=None): print("let's start!") export_file = common_utils.generate_export_file() current_path = os.getcwd() server_config = current_path + os.sep + 'ags_pms.conf' url, username, password, services_list, properties, folder, service_name_prefix = initialize_parameters(export_file, server_config) token = common_utils.generate_token(export_file, url, username, password) service_count, full_services_list, folders = common_utils.get_services_list(export_file, url, token) loop_services(export_file, url, token, full_services_list, services_list, properties, folder, service_name_prefix)
def main(argv=None): print("let's start!") export_file = common_utils.generate_export_file() current_path = os.getcwd() server_config = current_path + os.sep + 'ags_pms.conf' url, username, password, repair_times = initialize_parameters(export_file,server_config) token = common_utils.generate_token(export_file, url, username, password) service_count, full_services_list, folders = common_utils.get_services_list(export_file, url, token) check_service_status(export_file,url,token,full_services_list,int(repair_times)) check_instance_statistics(export_file,url,token,full_services_list,int(repair_times))
def main(argv=None): print("let's start!") export_file = common_utils.generate_export_file() current_path = os.getcwd() server_config = current_path + os.sep + 'ags_pms.conf' url, username, password, interval, times = initialize_parameters( export_file, server_config) token = common_utils.generate_token(export_file, url, username, password) service_count, full_services_list, folders = common_utils.get_services_list( export_file, url, token) # begin test for request by interval and times request_services(export_file, url, token, service_count, full_services_list, interval, times)
def main(argv=None): print("let's start!") export_file = common_utils.generate_export_file() current_path = os.getcwd() server_config = current_path + os.sep + 'ags_pms.conf' current_path = os.getcwd() service_config_file = current_path + os.sep + 'service.json' url, username, password, folder, start_num, service_count, service_name_prefix = initialize_parameters( export_file, server_config) token = common_utils.generate_token(export_file, url, username, password) current_service_count, full_services_list, folders = common_utils.get_services_list( export_file, url, token) create_new_folder(export_file, url, token, folder, folders) publish_map_services(export_file, url, token, service_config_file, folder, service_name_prefix, start_num, service_count)