From f22f291c8bbd6807ddc6779a78ffb6bc5ec9b8e5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 9 Feb 2021 01:49:15 -0500 Subject: [PATCH] Add additional field and info to Swagger --- api-daemon/pvcapid/flaskapi.py | 7 +++++-- docs/manuals/swagger.json | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 28d93c00..3f38ed80 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -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 diff --git a/docs/manuals/swagger.json b/docs/manuals/swagger.json index e6258169..9d0481c4 100644 --- a/docs/manuals/swagger.json +++ b/docs/manuals/swagger.json @@ -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": {