From 8607827cfaa28d1b075645ccc2e4b01f074bc7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 31 May 2022 12:30:46 +0200 Subject: [PATCH] OAPI: add `SocketIOWorkerUpdate` schema --- pkg/api/flamenco-openapi.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkg/api/flamenco-openapi.yaml b/pkg/api/flamenco-openapi.yaml index 2e056b55..bc846c9f 100644 --- a/pkg/api/flamenco-openapi.yaml +++ b/pkg/api/flamenco-openapi.yaml @@ -1349,6 +1349,27 @@ components: description: Chunk of the task log. May contain multiple lines of text. required: [task_id, log] + SocketIOWorkerUpdate: + type: object + description: > + Subset of a Worker, sent over SocketIO when a worker changes. + For new workers, `previous_status` will be excluded. + properties: + "id": + type: string + format: uuid + description: UUID of the Worker + "nickname": { type: string, description: "Name of the worker" } + "updated": + type: string + format: date-time + description: Timestamp of last update + "status": { $ref: "#/components/schemas/WorkerStatus" } + "previous_status": { $ref: "#/components/schemas/WorkerStatus" } + "status_requested": { $ref: "#/components/schemas/WorkerStatus" } + "version": { type: string } + required: [id, nickname, updated, status, version] + SocketIOSubscription: type: object description: >