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 2013/07/17 20:53:49 UTC
git commit: Added a "registered" key/value pair to slave's stats.json.
Updated Branches:
refs/heads/master 2d29a2952 -> b8291304e
Added a "registered" key/value pair to slave's stats.json.
Review: https://reviews.apache.org/r/12256
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b8291304
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b8291304
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/b8291304
Branch: refs/heads/master
Commit: b8291304e1523eb67ea8dc5f195cdb0d8e7d8348
Parents: 2d29a29
Author: Vinod Kone <vi...@twitter.com>
Authored: Wed Jul 3 12:37:36 2013 -0700
Committer: Vinod Kone <vi...@twitter.com>
Committed: Wed Jul 17 11:39:33 2013 -0700
----------------------------------------------------------------------
src/slave/http.cpp | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/b8291304/src/slave/http.cpp
----------------------------------------------------------------------
diff --git a/src/slave/http.cpp b/src/slave/http.cpp
index dc2955f..dd51516 100644
--- a/src/slave/http.cpp
+++ b/src/slave/http.cpp
@@ -281,6 +281,8 @@ Future<Response> Slave::Http::stats(const Request& request)
object.values["lost_tasks"] = slave.stats.tasks[TASK_LOST];
object.values["valid_status_updates"] = slave.stats.validStatusUpdates;
object.values["invalid_status_updates"] = slave.stats.invalidStatusUpdates;
+ object.values["registered"] = slave.master ? "1" : "0";
+
return OK(object, request.query.get("jsonp"));
}