[Groonga-commit] droonga/droonga.org at 40b9181 [gh-pages] Add output example for commands

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 10:54:52 JST 2015


YUKI Hiroshi	2015-05-07 10:54:52 +0900 (Thu, 07 May 2015)

  New Revision: 40b9181787db793c357acaeaba14c2cc141800f8
  https://github.com/droonga/droonga.org/commit/40b9181787db793c357acaeaba14c2cc141800f8

  Message:
    Add output example for commands

  Modified files:
    reference/1.1.1/command-line-tools/droonga-system-status/index.md

  Modified: reference/1.1.1/command-line-tools/droonga-system-status/index.md (+29 -1)
===================================================================
--- reference/1.1.1/command-line-tools/droonga-system-status/index.md    2015-05-07 10:29:07 +0900 (0e0baa5)
+++ reference/1.1.1/command-line-tools/droonga-system-status/index.md    2015-05-07 10:54:52 +0900 (5a6bc96)
@@ -14,7 +14,18 @@ For example, if there is a Droonga node `192.168.100.50` and you are logged in t
 
 ~~~
 (on 192.168.100.10)
-$ droonga-system-status --host 192.168.100.50 --receiver-host 192.168.100.10
+$ droonga-system-status --host 192.168.100.50 --receiver-host 192.168.100.10 --pretty
+{
+  "nodes": {
+    "node0:10031/droonga": {
+      "status": "active"
+    },
+    "node1:10031/droonga": {
+      "status": "active"
+    }
+  },
+  "reporter": "node0:55329/droonga @ node0:10031/droonga"
+}
 ~~~
 
 This command is just a shorthand of [`droonga-request`](../droonga-request/) with a message with the type [`system.status`](../../commands/system/status/).
@@ -24,6 +35,23 @@ The result produced by the following command line completely equals to the one o
 (on 192.168.100.10)
 $ echo '{"type":"system.status"}' |
     droonga-request --host 192.168.100.50 --receiver-host 192.168.100.10
+Elapsed time: 0.00900742
+{
+  "inReplyTo": "1430963525.9829412",
+  "statusCode": 200,
+  "type": "system.status.result",
+  "body": {
+    "nodes": {
+      "node0:10031/droonga": {
+        "status": "active"
+      },
+      "node1:10031/droonga": {
+        "status": "active"
+      }
+    },
+    "reporter": "node0:55329/droonga @ node0:10031/droonga"
+  }
+}
 ~~~
 
 See also [the reference of the `system.status` command](../../commands/system/status/).
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index