diff --git a/web/api/v1/openapi_schemas.go b/web/api/v1/openapi_schemas.go index ac298ac0bd..d768f4208d 100644 --- a/web/api/v1/openapi_schemas.go +++ b/web/api/v1/openapi_schemas.go @@ -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()) diff --git a/web/api/v1/testdata/openapi_3.1_golden.yaml b/web/api/v1/testdata/openapi_3.1_golden.yaml index e1282e2658..8d1278ff91 100644 --- a/web/api/v1/testdata/openapi_3.1_golden.yaml +++ b/web/api/v1/testdata/openapi_3.1_golden.yaml @@ -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: diff --git a/web/api/v1/testdata/openapi_3.2_golden.yaml b/web/api/v1/testdata/openapi_3.2_golden.yaml index 901e24280c..a3f3d88f52 100644 --- a/web/api/v1/testdata/openapi_3.2_golden.yaml +++ b/web/api/v1/testdata/openapi_3.2_golden.yaml @@ -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: