Simplify instrumentation metrics.

- fix javascript deserialization in UI with json response
-  create swarm watcher to monitor replicas
This commit is contained in:
Alex Ellis
2017-03-14 22:04:17 +00:00
committed by Alex Ellis
parent 38713184e5
commit a63dd8ee4c
8 changed files with 115 additions and 44 deletions

View File

@ -35,7 +35,11 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
$http(options)
.then(function(response) {
$scope.invocationResponse = response.data;
if($scope.invocation && $scope.invocation.contentType == "json") {
$scope.invocationResponse = JSON.stringify(response.data, -1, " ");
} else {
$scope.invocationResponse = response.data;
}
$scope.invocationStatus = response.status;
}).catch(function(error1) {
$scope.invocationResponse = error1.statusText + "\n" + error1.data;