mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 12:26:14 +02:00
Fix OpenAPI defs
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
d456d314d2
commit
d4935fbf6e
@ -112,6 +112,7 @@ func (b *OpenAPIBuilder) buildComponents() *v3.Components {
|
||||
schemas.Set("StatusTSDBBlocksOutputBody", b.refResponseBodySchema("StatusTSDBBlocksData", "Response body for status TSDB blocks endpoint."))
|
||||
schemas.Set("StatusWALReplayData", b.statusWALReplayDataSchema())
|
||||
schemas.Set("StatusWALReplayOutputBody", b.refResponseBodySchema("StatusWALReplayData", "Response body for status WAL replay endpoint."))
|
||||
schemas.Set("StatusSelfMetricsOutputBody", b.simpleResponseBodySchema())
|
||||
|
||||
// Admin schemas.
|
||||
schemas.Set("DeleteSeriesOutputBody", b.statusOnlyResponseBodySchema())
|
||||
|
||||
29
web/api/v1/testdata/openapi_3.1_golden.yaml
vendored
29
web/api/v1/testdata/openapi_3.1_golden.yaml
vendored
@ -4273,6 +4273,35 @@ components:
|
||||
- data
|
||||
additionalProperties: false
|
||||
description: Response body for status WAL replay endpoint.
|
||||
StatusSelfMetricsOutputBody:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- success
|
||||
- error
|
||||
description: Response status.
|
||||
example: success
|
||||
data:
|
||||
description: Response data (structure varies by endpoint).
|
||||
example:
|
||||
result: ok
|
||||
warnings:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: Only set if there were warnings while executing the request. There will still be data in the data field.
|
||||
infos:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: Only set if there were info-level annotations while executing the request.
|
||||
required:
|
||||
- status
|
||||
- data
|
||||
additionalProperties: false
|
||||
description: Generic response body.
|
||||
DeleteSeriesOutputBody:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
29
web/api/v1/testdata/openapi_3.2_golden.yaml
vendored
29
web/api/v1/testdata/openapi_3.2_golden.yaml
vendored
@ -4311,6 +4311,35 @@ components:
|
||||
- data
|
||||
additionalProperties: false
|
||||
description: Response body for status WAL replay endpoint.
|
||||
StatusSelfMetricsOutputBody:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- success
|
||||
- error
|
||||
description: Response status.
|
||||
example: success
|
||||
data:
|
||||
description: Response data (structure varies by endpoint).
|
||||
example:
|
||||
result: ok
|
||||
warnings:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: Only set if there were warnings while executing the request. There will still be data in the data field.
|
||||
infos:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: Only set if there were info-level annotations while executing the request.
|
||||
required:
|
||||
- status
|
||||
- data
|
||||
additionalProperties: false
|
||||
description: Generic response body.
|
||||
DeleteSeriesOutputBody:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user