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: id:
type: integer type: integer
description: The Ceph pool ID description: The Ceph pool ID
stored_bytes:
type: integer
description: The stored data size (in bytes, post-replicas)
free_bytes: free_bytes:
type: integer type: integer
description: The total free space (in bytes) description: The total free space (in bytes. post-replicas)
used_bytes: used_bytes:
type: integer type: integer
description: The total used space (in bytes) description: The total used space (in bytes, pre-replicas)
used_percent: used_percent:
type: number type: number
description: The ratio of used space to free space description: The ratio of used space to free space

View File

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