You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/05/05 21:38:51 UTC

[3/5] mesos git commit: Fixed invalid JSON in scheduler HTTP API examples.

Fixed invalid JSON in scheduler HTTP API examples.

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


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

Branch: refs/heads/master
Commit: caab5e4117159ffe27954194536e846dd1c3be86
Parents: dc866e7
Author: Neil Conway <ne...@gmail.com>
Authored: Thu May 5 14:38:33 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu May 5 14:38:33 2016 -0700

----------------------------------------------------------------------
 docs/scheduler-http-api.md | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/caab5e41/docs/scheduler-http-api.md
----------------------------------------------------------------------
diff --git a/docs/scheduler-http-api.md b/docs/scheduler-http-api.md
index 6926c27..c1a8308 100644
--- a/docs/scheduler-http-api.md
+++ b/docs/scheduler-http-api.md
@@ -87,7 +87,6 @@ Connection: close
 
 {
    "type"		: "SUBSCRIBE",
-
    "subscribe"	: {
       "framework_info"	: {
         "user" :  "foo",
@@ -138,7 +137,7 @@ Mesos-Stream-Id: 130ae4e3-6b13-4ef4-baa9-9f2e85c3e9af
 
 {
   "framework_id"	: {"value" : "12220-3440-12532-2345"},
-  "type"			: "TEARDOWN",
+  "type"			: "TEARDOWN"
 }
 
 TEARDOWN Response:
@@ -215,7 +214,7 @@ Mesos-Stream-Id: 130ae4e3-6b13-4ef4-baa9-9f2e85c3e9af
 
 {
   "framework_id"	: {"value" : "12220-3440-12532-2345"},
-  "type"			: "REVIVE",
+  "type"			: "REVIVE"
 }
 
 REVIVE Response:
@@ -371,7 +370,7 @@ Mesos-Stream-Id: 130ae4e3-6b13-4ef4-baa9-9f2e85c3e9af
       {
          "agent_id"       : {"value" : "12220-3440-12532-S1233"},
          "resources"      : {}
-      },
+      }
   ]
 }
 
@@ -443,7 +442,6 @@ UPDATE Event (JSON)
         "source"	: "SOURCE_EXECUTOR",
         "uuid"		: "adfadfadbhgvjayd23r2uahj",
         "bytes"		: "uhdjfhuagdj63d7hadkf"
-
       }
   }
 }
@@ -505,7 +503,7 @@ HEARTBEAT Event (JSON)
 
 <event-length>
 {
-  "type"	: "HEARTBEAT",
+  "type"	: "HEARTBEAT"
 }
 ```