You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2017/01/24 01:08:03 UTC

[23/25] mesos git commit: Updated webui to display number of unreachable agents.

Updated webui to display number of unreachable agents.

Review: https://reviews.apache.org/r/55805/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c66f57a9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c66f57a9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c66f57a9

Branch: refs/heads/master
Commit: c66f57a901ea480294830c3f56f00af10443605d
Parents: a16c557
Author: Neil Conway <ne...@gmail.com>
Authored: Mon Jan 23 17:05:17 2017 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Mon Jan 23 17:07:27 2017 -0800

----------------------------------------------------------------------
 src/webui/master/static/home.html         | 4 ++++
 src/webui/master/static/js/controllers.js | 1 +
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c66f57a9/src/webui/master/static/home.html
----------------------------------------------------------------------
diff --git a/src/webui/master/static/home.html b/src/webui/master/static/home.html
index 23b09b6..295da52 100644
--- a/src/webui/master/static/home.html
+++ b/src/webui/master/static/home.html
@@ -58,6 +58,10 @@
             <td>Deactivated</td>
             <td class="text-right">{{deactivated_agents | number}}</td>
           </tr>
+          <tr>
+            <td>Unreachable</td>
+            <td class="text-right">{{unreachable_agents | number}}</td>
+          </tr>
         </tbody>
       </table>
 

http://git-wip-us.apache.org/repos/asf/mesos/blob/c66f57a9/src/webui/master/static/js/controllers.js
----------------------------------------------------------------------
diff --git a/src/webui/master/static/js/controllers.js b/src/webui/master/static/js/controllers.js
index b6364fa..d9fa7a1 100644
--- a/src/webui/master/static/js/controllers.js
+++ b/src/webui/master/static/js/controllers.js
@@ -133,6 +133,7 @@
 
     $scope.activated_agents = $scope.state.activated_slaves;
     $scope.deactivated_agents = $scope.state.deactivated_slaves;
+    $scope.unreachable_agents = $scope.state.unreachable_slaves;
 
     _.each($scope.state.slaves, function(agent) {
       $scope.agents[agent.id] = agent;