diff options
author | James E. Blair <jim@acmegating.com> | 2022-09-07 14:30:27 -0700 |
---|---|---|
committer | James E. Blair <jim@acmegating.com> | 2022-09-21 06:50:12 -0700 |
commit | fa590a9f507ac36d9c664cedbf8e717d92f7c03d (patch) | |
tree | d5338f2c19aab0936797649bf24a80bbd6d3ddc5 /web/public | |
parent | 06cfe2cacde1f7d32bf7d60e43ee19e03ebf0e41 (diff) | |
download | zuul-fa590a9f507ac36d9c664cedbf8e717d92f7c03d.tar.gz |
Add semaphore support to web UI
This updates the OpenAPI docs to include the semaphores endpoint,
and adds a Semaphores tab to the web UI to show information about
semaphores within a tenant.
Change-Id: If78b27131ac76aff93c47a986fce6eae3e068668
Diffstat (limited to 'web/public')
-rw-r--r-- | web/public/openapi.yaml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/web/public/openapi.yaml b/web/public/openapi.yaml index b101c66e0..d69111cf8 100644 --- a/web/public/openapi.yaml +++ b/web/public/openapi.yaml @@ -283,6 +283,31 @@ paths: summary: Get a project public key tags: - tenant + /api/tenant/{tenant}/semaphores: + get: + operationId: list-semaphores + parameters: + - description: The tenant name + in: path + name: tenant + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + description: The list of semaphores + items: + $ref: '#/components/schemas/semaphore' + type: array + description: Returns the list of semaphores + '404': + description: Tenant not found + summary: List available semaphores + tags: + - tenant /api/tenant/{tenant}/status: get: operationId: get-status @@ -520,6 +545,46 @@ components: description: The pipeline name type: string type: object + semaphore: + description: A semaphore + properties: + name: + description: The semaphore name + type: string + global: + description: Whether the semaphore is global + type: boolean + max: + description: The maximum number of holders + type: integer + holders: + $ref: '#/components/schemas/semaphoreHolders' + type: object + semaphoreHolders: + description: Information about the holders of a semaphore + properties: + count: + description: The number of jobs currently holding this semaphore + type: integer + this_tenant: + description: Holders within this tenant + items: + $ref: '#/components/schemas/semaphoreHolder' + type: array + other_tenants: + description: The number of jobs in other tenants currently holding this semaphore + type: integer + type: object + semaphoreHolder: + description: Information about a holder of a semaphore + properties: + buildset_uuid: + description: The UUID of the job's buildset + type: string + job_name: + description: The name of the job + type: string + type: object statusJob: description: A job status properties: |