mirror of
				https://github.com/ClusterCockpit/cc-metric-store.git
				synced 2025-10-31 09:05:06 +01:00 
			
		
		
		
	feat: HealthCheck endpoint for nodes
This commit is contained in:
		| @@ -130,6 +130,63 @@ | ||||
|                 } | ||||
|             } | ||||
|         }, | ||||
|         "/healthcheck/": { | ||||
|             "get": { | ||||
|                 "security": [ | ||||
|                     { | ||||
|                         "ApiKeyAuth": [] | ||||
|                     } | ||||
|                 ], | ||||
|                 "description": "This endpoint allows the users to check if a node is healthy", | ||||
|                 "produces": [ | ||||
|                     "application/json" | ||||
|                 ], | ||||
|                 "tags": [ | ||||
|                     "healthcheck" | ||||
|                 ], | ||||
|                 "summary": "HealthCheck endpoint", | ||||
|                 "parameters": [ | ||||
|                     { | ||||
|                         "type": "string", | ||||
|                         "description": "Selector", | ||||
|                         "name": "selector", | ||||
|                         "in": "query" | ||||
|                     } | ||||
|                 ], | ||||
|                 "responses": { | ||||
|                     "200": { | ||||
|                         "description": "Debug dump", | ||||
|                         "schema": { | ||||
|                             "type": "string" | ||||
|                         } | ||||
|                     }, | ||||
|                     "400": { | ||||
|                         "description": "Bad Request", | ||||
|                         "schema": { | ||||
|                             "$ref": "#/definitions/api.ErrorResponse" | ||||
|                         } | ||||
|                     }, | ||||
|                     "401": { | ||||
|                         "description": "Unauthorized", | ||||
|                         "schema": { | ||||
|                             "$ref": "#/definitions/api.ErrorResponse" | ||||
|                         } | ||||
|                     }, | ||||
|                     "403": { | ||||
|                         "description": "Forbidden", | ||||
|                         "schema": { | ||||
|                             "$ref": "#/definitions/api.ErrorResponse" | ||||
|                         } | ||||
|                     }, | ||||
|                     "500": { | ||||
|                         "description": "Internal Server Error", | ||||
|                         "schema": { | ||||
|                             "$ref": "#/definitions/api.ErrorResponse" | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         }, | ||||
|         "/query/": { | ||||
|             "get": { | ||||
|                 "security": [ | ||||
|   | ||||
| @@ -175,6 +175,42 @@ paths: | ||||
|       - ApiKeyAuth: [] | ||||
|       tags: | ||||
|       - free | ||||
|   /healthcheck/: | ||||
|     get: | ||||
|       description: This endpoint allows the users to check if a node is healthy | ||||
|       parameters: | ||||
|       - description: Selector | ||||
|         in: query | ||||
|         name: selector | ||||
|         type: string | ||||
|       produces: | ||||
|       - application/json | ||||
|       responses: | ||||
|         "200": | ||||
|           description: Debug dump | ||||
|           schema: | ||||
|             type: string | ||||
|         "400": | ||||
|           description: Bad Request | ||||
|           schema: | ||||
|             $ref: '#/definitions/api.ErrorResponse' | ||||
|         "401": | ||||
|           description: Unauthorized | ||||
|           schema: | ||||
|             $ref: '#/definitions/api.ErrorResponse' | ||||
|         "403": | ||||
|           description: Forbidden | ||||
|           schema: | ||||
|             $ref: '#/definitions/api.ErrorResponse' | ||||
|         "500": | ||||
|           description: Internal Server Error | ||||
|           schema: | ||||
|             $ref: '#/definitions/api.ErrorResponse' | ||||
|       security: | ||||
|       - ApiKeyAuth: [] | ||||
|       summary: HealthCheck endpoint | ||||
|       tags: | ||||
|       - healthcheck | ||||
|   /query/: | ||||
|     get: | ||||
|       consumes: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user