qmp-events: move 'BLOCK_JOB_CANCELLED' 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
e21e65b212
commit
e161df3939
@ -30,31 +30,6 @@ Example:
|
||||
|
||||
Note: this event is rate-limited.
|
||||
|
||||
BLOCK_JOB_CANCELLED
|
||||
-------------------
|
||||
|
||||
Emitted when a block job has been cancelled.
|
||||
|
||||
Data:
|
||||
|
||||
- "type": Job type (json-string; "stream" for image streaming
|
||||
"commit" for block commit)
|
||||
- "device": Job identifier. Originally the device name but other
|
||||
values are allowed since QEMU 2.7 (json-string)
|
||||
- "len": Maximum progress value (json-int)
|
||||
- "offset": Current progress value (json-int)
|
||||
On success this is equal to len.
|
||||
On failure this is less than len.
|
||||
- "speed": Rate limit, bytes per second (json-int)
|
||||
|
||||
Example:
|
||||
|
||||
{ "event": "BLOCK_JOB_CANCELLED",
|
||||
"data": { "type": "stream", "device": "virtio-disk0",
|
||||
"len": 10737418240, "offset": 134217728,
|
||||
"speed": 0 },
|
||||
"timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
|
||||
|
||||
BLOCK_JOB_ERROR
|
||||
---------------
|
||||
|
||||
|
@ -3344,6 +3344,15 @@
|
||||
# @speed: rate limit, bytes per second
|
||||
#
|
||||
# Since: 1.1
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# <- { "event": "BLOCK_JOB_CANCELLED",
|
||||
# "data": { "type": "stream", "device": "virtio-disk0",
|
||||
# "len": 10737418240, "offset": 134217728,
|
||||
# "speed": 0 },
|
||||
# "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
|
||||
#
|
||||
##
|
||||
{ 'event': 'BLOCK_JOB_CANCELLED',
|
||||
'data': { 'type' : 'BlockJobType',
|
||||
|
Loading…
Reference in New Issue
Block a user