File tree 2 files changed +7
-6
lines changed
django_frontend_service/frontend_service_app
django_remote_service/django_remote_service
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
## SPDX-License-Identifier: Apache-2.0
3
- from django .http import HttpResponse , JsonResponse
4
- import boto3
5
3
import logging
4
+ import threading
5
+ import time
6
+
7
+ import boto3
6
8
import requests
7
9
import schedule
8
- import time
9
- import threading
10
+ from django .http import HttpResponse , JsonResponse
10
11
from opentelemetry import trace
11
12
from opentelemetry .trace .span import format_trace_id
12
13
@@ -75,7 +76,7 @@ def http_call(request):
75
76
def downstream_service (request ):
76
77
ip = request .GET .get ('ip' , '' )
77
78
ip = ip .replace ("/" , "" )
78
- url = f"http://{ ip } :8001/health-check "
79
+ url = f"http://{ ip } :8001/healthcheck "
79
80
try :
80
81
response = requests .get (url )
81
82
status_code = response .status_code
Original file line number Diff line number Diff line change 4
4
from remote_service_app import views
5
5
6
6
urlpatterns = [
7
- path ('health-check ' , views .healthcheck ),
7
+ path ('healthcheck ' , views .healthcheck ),
8
8
]
You can’t perform that action at this time.
0 commit comments