diff --git a/apimanager/metrics/static/metrics/js/lastEndpointMetric.js b/apimanager/metrics/static/metrics/js/lastEndpointMetric.js index e22ceaac..82c11f88 100644 --- a/apimanager/metrics/static/metrics/js/lastEndpointMetric.js +++ b/apimanager/metrics/static/metrics/js/lastEndpointMetric.js @@ -4,12 +4,13 @@ $(document).ready(function($) { function getMetricLastEndpoint(){ $.ajax({url: "/metrics/api/last-endpoint", success: function(result){ - var content = "Last call: " - +result['app_name']+" " + var content = "" + +result['implemented_by_partial_function']+" took " + +result['duration']+"ms at " + +result['date']+" " +result['verb']+" " - + result['implemented_by_partial_function'] - +" costed " - +result['duration'] + + result['url'] + +" ms."; $("#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 e8b174c1..99184780 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 %}