diff --git a/app/notify_client/status_api_client.py b/app/notify_client/status_api_client.py index ef4923517..92de16bef 100644 --- a/app/notify_client/status_api_client.py +++ b/app/notify_client/status_api_client.py @@ -1,6 +1,5 @@ import os from app.notify_client import NotifyAdminAPIClient, cache -from flask import current_app class StatusApiClient(NotifyAdminAPIClient): @@ -11,8 +10,5 @@ class StatusApiClient(NotifyAdminAPIClient): def get_count_of_live_services_and_organisations(self): return self.get(url='/_status/live-service-and-organisation-counts') - def get_services(self): - return self.get(url='/service') - status_api_client = StatusApiClient() diff --git a/app/status/views/healthcheck.py b/app/status/views/healthcheck.py index 69c36c5aa..11b5871af 100644 --- a/app/status/views/healthcheck.py +++ b/app/status/views/healthcheck.py @@ -20,29 +20,3 @@ def show_status(): api=api_status, git_commit=version.__git_commit__, build_time=version.__time__), 200 - -@status.route('/_status/servicecounts', methods=['GET']) -def get_counts(): - try: - orgs_status = status_api_client.get_count_of_live_services_and_organisations() - except HTTPError as e: - current_app.logger.exception("API failed to respond") - return jsonify(status="error", message=str(e.message)), 500 - return jsonify( - status="ok", - api=orgs_status, - git_commit=version.__git_commit__, - build_time=version.__time__), 200 - -@status.route('/_status/services', methods=['GET']) -def get_services(): - try: - services = status_api_client.get_services() - except HTTPError as e: - current_app.logger.exception("API failed to respond") - return jsonify(status="error", message=str(e.message)), 500 - return jsonify( - status="ok", - api=services, - git_commit=version.__git_commit__, - build_time=version.__time__), 200