qmp-events: move 'BLOCK_JOB_COMPLETED' 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
07c9f583d5
commit
e21e65b212
|
@ -55,36 +55,6 @@ Example:
|
||||||
"speed": 0 },
|
"speed": 0 },
|
||||||
"timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
|
"timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
|
||||||
|
|
||||||
BLOCK_JOB_COMPLETED
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
Emitted when a block job has completed.
|
|
||||||
|
|
||||||
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)
|
|
||||||
- "error": Error message (json-string, optional)
|
|
||||||
Only present on failure. This field contains a human-readable
|
|
||||||
error message. There are no semantics other than that streaming
|
|
||||||
has failed and clients should not try to interpret the error
|
|
||||||
string.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
{ "event": "BLOCK_JOB_COMPLETED",
|
|
||||||
"data": { "type": "stream", "device": "virtio-disk0",
|
|
||||||
"len": 10737418240, "offset": 10737418240,
|
|
||||||
"speed": 0 },
|
|
||||||
"timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
|
|
||||||
|
|
||||||
BLOCK_JOB_ERROR
|
BLOCK_JOB_ERROR
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
|
|
@ -3308,6 +3308,15 @@
|
||||||
# interpret the error string
|
# interpret the error string
|
||||||
#
|
#
|
||||||
# Since: 1.1
|
# Since: 1.1
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# <- { "event": "BLOCK_JOB_COMPLETED",
|
||||||
|
# "data": { "type": "stream", "device": "virtio-disk0",
|
||||||
|
# "len": 10737418240, "offset": 10737418240,
|
||||||
|
# "speed": 0 },
|
||||||
|
# "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'event': 'BLOCK_JOB_COMPLETED',
|
{ 'event': 'BLOCK_JOB_COMPLETED',
|
||||||
'data': { 'type' : 'BlockJobType',
|
'data': { 'type' : 'BlockJobType',
|
||||||
|
|
Loading…
Reference in New Issue