{ "schemes": [ "http" ], "swagger": "2.0", "info": { "title": "Спецификация публичного API мониторинга облачной платформы Cloud.ru в формате Prometheus text-based exposition", "contact": {}, "version": "0.1" }, "host": "monitoring.api.cloud.ru", "basePath": "/", "consumes": [ "application/json" ], "paths": { "/v1/{product_instance_id}/scrape_metrics": { "get": { "description": "", "consumes": [ "application/json" ], "produces": [ "text/plain" ], "summary": "Получение метрик проекта облачной платформы Cloud.ru в формате Prometheus text-based exposition", "parameters": [ { "type": "string", "description": "Идентификатор экземпляра продукта Monitoring as a Service, относящегося к проекту облачной платформы", "name": "product_instance_id", "in": "path", "required": true }, { "type": "array", "items": { "type": "string" }, "description": "Правила выборки метрик - селектор временных рядов prometheus", "name": "match", "in": "query", "required": true }, { "type": "integer", "description": "Начало временного интервала, за который необходимо получить данные о метриках", "name": "start", "in": "query", "required": false }, { "type": "integer", "description": "Конец временного интервала, за который необходимо получить данные о метриках", "name": "end", "in": "query", "required": false } ], "responses": { "200": { "description": "Успешное выполнение запроса", "schema": { "type": "string" } }, "400": { "description": "Некорректный запрос", "schema": { "type": "object", "properties": { "error": { "type": "string" } } } }, "401": { "description": "Необходима авторизация", "schema": { "type": "object", "properties": { "error": { "type": "string" } } } }, "403": { "description": "Доступ запрещен", "schema": { "type": "object", "properties": { "error": { "type": "string" } } } }, "404": { "description": "Ресурс не найден", "schema": { "type": "object", "properties": { "error": { "type": "string" } } } }, "500": { "description": "Внутренняя ошибка сервера", "schema": { "type": "object", "properties": { "error": { "type": "string" } } } } } } } }, "definitions": { "models.ErrResponse": { "type": "object", "properties": { "error": { "type": "string" } } } } }