qapi: fix example of UNPLUG_PRIMARY event

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;
- Breaking lines similar to the other examples.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20220328140604.41484-8-victortoso@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
master
Victor Toso 2022-03-28 16:05:57 +02:00 committed by Markus Armbruster
parent dba673b9ab
commit 0df5e9a301
1 changed files with 3 additions and 1 deletions

View File

@ -1736,7 +1736,9 @@
# Since: 4.2
#
# Example:
# {"event": "UNPLUG_PRIMARY", "data": {"device-id": "hostdev0"} }
# <- { "event": "UNPLUG_PRIMARY",
# "data": { "device-id": "hostdev0" },
# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
#
##
{ 'event': 'UNPLUG_PRIMARY',