def check_api(): msg = dict() local_access = Access(ip=CONFIG.LOCAL_ADDRESS, port="5000", endpoint="/api") external_access = Access(ip=CONFIG.EXTERNAL_IP, port="80", endpoint="/api") domain_access = Access(ip=CONFIG.DOMAIN_NAME, endpoint="/api") api_service = MicroserviceAccess(service_name) msg[service_name] = api_service.check_all(local=local_access, external=external_access, domain=domain_access) return jsonify(msg), 200
def check_domain(): access = Access(ip=CONFIG.DOMAIN_NAME, endpoint="/api") api_service = MicroserviceAccess(service_name) return jsonify({"domain": api_service.domain(access)}), 200
def check_external(): access = Access(ip=CONFIG.EXTERNAL_IP, port="80", endpoint="/api") api_service = MicroserviceAccess(service_name) return jsonify({"external": api_service.external(access)}), 200
def check_local(): access = Access(ip=CONFIG.LOCAL_ADDRESS, port="5000", endpoint="/api") api_service = MicroserviceAccess(service_name) return jsonify({"local": api_service.local(access)}), 200
def check_local(): access = Access(ip=CONFIG.LOCAL_ADDRESS, port="80", endpoint="/resume") resume_service = MicroserviceAccess(service_name) return jsonify({"local": resume_service.local(access)}), 200