diff --git a/apimanager/metrics/static/metrics/js/lastEndpointMetric.js b/apimanager/metrics/static/metrics/js/lastEndpointMetric.js index 82c11f88..7e623329 100644 --- a/apimanager/metrics/static/metrics/js/lastEndpointMetric.js +++ b/apimanager/metrics/static/metrics/js/lastEndpointMetric.js @@ -6,12 +6,10 @@ function getMetricLastEndpoint(){ $.ajax({url: "/metrics/api/last-endpoint", success: function(result){ var content = "" +result['implemented_by_partial_function']+" took " - +result['duration']+"ms at " + +result['duration']+" ms at " +result['date']+" " +result['verb']+" " - + result['url'] - - +" ms."; + + result['url']; $("#last_endpoint").text(content); setTimeout(function(){getMetricLastEndpoint();}, 5000); // will call function to update time every 5 seconds }}); diff --git a/apimanager/metrics/templates/metrics/api.html b/apimanager/metrics/templates/metrics/api.html index 99184780..b335207c 100644 --- a/apimanager/metrics/templates/metrics/api.html +++ b/apimanager/metrics/templates/metrics/api.html @@ -14,7 +14,7 @@ {{ form.media }} {# Form required JS and CSS #} {% endblock %}
getBanks took 43ms at 2023-12-06T11:00:49Z GET /obp/v4.0.0/banks ms.