Add additional field and info to Swagger

This commit is contained in:
Joshua Boniface 2021-02-09 01:49:15 -05:00
parent 9100c63e99
commit f22f291c8b
2 changed files with 11 additions and 4 deletions

View File

@ -3337,12 +3337,15 @@ class API_Storage_Ceph_Pool_Root(Resource):
id:
type: integer
description: The Ceph pool ID
stored_bytes:
type: integer
description: The stored data size (in bytes, post-replicas)
free_bytes:
type: integer
description: The total free space (in bytes)
description: The total free space (in bytes. post-replicas)
used_bytes:
type: integer
description: The total used space (in bytes)
description: The total used space (in bytes, pre-replicas)
used_percent:
type: number
description: The ratio of used space to free space

View File

@ -621,7 +621,7 @@
"stats": {
"properties": {
"free_bytes": {
"description": "The total free space (in bytes)",
"description": "The total free space (in bytes. post-replicas)",
"type": "integer"
},
"id": {
@ -660,8 +660,12 @@
"description": "The total read operations on the pool (pool-lifetime)",
"type": "integer"
},
"stored_bytes": {
"description": "The stored data size (in bytes, post-replicas)",
"type": "integer"
},
"used_bytes": {
"description": "The total used space (in bytes)",
"description": "The total used space (in bytes, pre-replicas)",
"type": "integer"
},
"used_percent": {