From 441702a180bdd8a9f14d11a273b985e3e078fb49 Mon Sep 17 00:00:00 2001 From: Kirill Ryabov Date: Fri, 6 Jun 2025 12:42:48 +0300 Subject: [PATCH] MSP-5579 update swagger --- docs/swagger.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index f2adef4..9580930 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -197,6 +197,17 @@ definitions: $ref: '#/definitions/domain.Connection' type: array type: object + domain.PrometheusTargets: + properties: + labels: + additionalProperties: + type: string + type: object + targets: + items: + type: string + type: array + type: object domain.SyncConfigRequest: properties: moduleName: @@ -280,6 +291,16 @@ definitions: errorMessage: type: string type: object + github_com_txix-open_isp-kit_http_apierrors.Error: + properties: + details: + additionalProperties: {} + type: object + errorCode: + type: integer + errorMessage: + type: string + type: object host: localhost:9000 info: contact: {} @@ -598,6 +619,27 @@ paths: summary: Метод переименования объекта конфигурации tags: - Конфигурация + /internal/metrics/autodiscovery: + post: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/domain.PrometheusTargets' + type: array + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/github_com_txix-open_isp-kit_http_apierrors.Error' + summary: Метод получения конфигурации для HTTP-based service discovery механизма + Prometheus + tags: + - Метрики /module/delete_module: post: consumes: