qapi: fix example of DUMP_COMPLETED event
authorVictor Toso <victortoso@redhat.com>
Mon, 28 Mar 2022 14:05:55 +0000 (16:05 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 31 Mar 2022 10:34:51 +0000 (12:34 +0200)
Example output lacks mandatory member @timestamp.  Provide it.

Example output is not properly formatted. Fixing it by:
 - Adding '<-' to signalize it is receiving the data;
 - Adding extra spaces around members @result, @total and @completed

Signed-off-by: Victor Toso <victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20220328140604.41484-6-victortoso@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/dump.json

index f7c4267e3fcd4eeb34aa8957547b05c1462d60ab..9119c82b145d879aa16e651c1962003cbfdd7452 100644 (file)
 #
 # Example:
 #
-# { "event": "DUMP_COMPLETED",
-#   "data": {"result": {"total": 1090650112, "status": "completed",
-#                       "completed": 1090650112} } }
+# <- { "event": "DUMP_COMPLETED",
+#      "data": { "result": { "total": 1090650112, "status": "completed",
+#                            "completed": 1090650112 } },
+#      "timestamp": { "seconds": 1648244171, "microseconds": 950316 } }
 #
 ##
 { 'event': 'DUMP_COMPLETED' ,