qmp-commands: move 'query-events' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
4f19a01b3e
commit
66c2f5a56c
@ -1607,34 +1607,6 @@ Example:
|
||||
|
||||
Note: This example has been shortened as the real response is too long.
|
||||
|
||||
query-events
|
||||
--------------
|
||||
|
||||
List QMP available events.
|
||||
|
||||
Each event is represented by a json-object, the returned value is a json-array
|
||||
of all events.
|
||||
|
||||
Each json-object contains:
|
||||
|
||||
- "name": event's name (json-string)
|
||||
|
||||
Example:
|
||||
|
||||
-> { "execute": "query-events" }
|
||||
<- {
|
||||
"return":[
|
||||
{
|
||||
"name":"SHUTDOWN"
|
||||
},
|
||||
{
|
||||
"name":"RESET"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Note: This example has been shortened as the real response is too long.
|
||||
|
||||
query-qmp-schema
|
||||
----------------
|
||||
|
||||
|
@ -479,6 +479,23 @@
|
||||
# Returns: A list of @EventInfo for all supported events
|
||||
#
|
||||
# Since: 1.2.0
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# -> { "execute": "query-events" }
|
||||
# <- {
|
||||
# "return": [
|
||||
# {
|
||||
# "name":"SHUTDOWN"
|
||||
# },
|
||||
# {
|
||||
# "name":"RESET"
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
#
|
||||
# Note: This example has been shortened as the real response is too long.
|
||||
#
|
||||
##
|
||||
{ 'command': 'query-events', 'returns': ['EventInfo'] }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user