From 96defebd0bbcef45db60f24eb3547f77316be428 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 22 Feb 2023 00:25:27 -0500 Subject: [PATCH] Add last item to swagger doc --- api-daemon/pvcapid/flaskapi.py | 6 ++++++ docs/manuals/swagger.json | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 68dfb443..84931555 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -635,6 +635,12 @@ class API_Node_Root(Resource): type: integer description: The overall health (%) of the node example: 100 + health_plugins: + type: array + description: A list of health plugin names currently loaded on the node + items: + type: string + example: "nics" health_details: type: array description: A list of health plugin results diff --git a/docs/manuals/swagger.json b/docs/manuals/swagger.json index 2212b596..dd8cce8d 100644 --- a/docs/manuals/swagger.json +++ b/docs/manuals/swagger.json @@ -527,6 +527,14 @@ }, "type": "array" }, + "health_plugins": { + "description": "A list of health plugin names currently loaded on the node", + "items": { + "example": "nics", + "type": "string" + }, + "type": "array" + }, "kernel": { "desription": "The running kernel version from uname", "type": "string"