{ "swagger": "2.0", "info": { "description": "Service of metrics and alerting", "title": "Alerting Service API", "contact": { "email": "denis.takeda@gmail.com" }, "version": "1.0" }, "paths": { "/metric/{metric_type}/{metric_name}": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "summary": "returns a metric by name and typ", "parameters": [ { "type": "string", "description": "Metric Name", "name": "metric_name", "in": "path", "required": true }, { "type": "string", "description": "Metric Type", "name": "metric_type", "in": "path", "required": true } ], "responses": { "400": { "description": "Bad Request" }, "404": { "description": "Not Found" } } } }, "/ping": { "get": { "consumes": [ "application/json" ], "produces": [ "text/plain" ], "summary": "health of the service", "responses": { "200": { "description": "pong", "schema": { "type": "string" } } } } } } }