{ "swagger": "2.0", "info": { "description": "This is a dubbo-admin swagger ui server.", "title": "Dubbo-Admin API", "contact": {}, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, "host": "127.0.0.1:38080", "basePath": "/", "paths": { "/api/{env}/applications": { "get": { "description": "Get all applications", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Services" ], "summary": "Get all applications", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/consumers": { "get": { "description": "Get all consumers", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Services" ], "summary": "Get all consumers", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/metrics/cluster": { "get": { "description": "show cluster overview", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "metrics" ], "summary": "show cluster overview", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.ClusterMetricsRes" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/metrics/flow": { "get": { "description": "show Prometheus collected metrics", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "metrics" ], "summary": "show Prometheus collected metrics", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.FlowMetricsRes" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/metrics/metadata": { "get": { "description": "show metadata of the cluster, like dubbo versions, protocols, etc.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "metrics" ], "summary": "show metadata of the cluster, like dubbo versions, protocols, etc.", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.Metadata" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/mock/rule": { "post": { "description": "Create or update MockRule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MockRules" ], "summary": "Create or update MockRule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "description": "MockRule", "name": "mockRule", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.MockRule" } } ], "responses": { "201": { "description": "Created", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "Delete MockRule by id", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MockRules" ], "summary": "Delete MockRule by id", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "description": "MockRule", "name": "mockRule", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.MockRule" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/mock/rule/list": { "get": { "description": "Get MockRules by page", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "MockRules" ], "summary": "Get MockRules by page", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "filter condition", "name": "filter", "in": "query" }, { "type": "integer", "description": "page offset", "name": "offset", "in": "query" }, { "type": "integer", "description": "page limit", "name": "limit", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.ListMockRulesByPage" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/override": { "get": { "description": "Search override rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Search override rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "application and service must not left empty at the same time", "name": "application", "in": "query" }, { "type": "string", "description": "application and service must not left empty at the same time", "name": "service", "in": "query" }, { "type": "string", "description": "version of dubbo service", "name": "serviceVersion", "in": "query" }, { "type": "string", "description": "group of dubbo service", "name": "serviceGroup", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.DynamicConfig" } } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Create a new override rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Create a new override rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "description": "Override Rule Input", "name": "dynamicConfig", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.DynamicConfig" } } ], "responses": { "201": { "description": "Created", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/override/disable/{id}": { "put": { "description": "Disable the specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Disable the specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/override/enable/{id}": { "put": { "description": "Enable the specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Enable the specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/override/{id}": { "get": { "description": "Show the detail of one specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Show the detail of one specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.DynamicConfig" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Update override rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Update override rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "Override Rule Id", "name": "id", "in": "path", "required": true }, { "description": "Override Rule Input", "name": "dynamicConfig", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.DynamicConfig" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "Delete the specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "OverrideRule" ], "summary": "Delete the specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/condition": { "get": { "description": "Search condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Search condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "application and service must not left empty at the same time", "name": "application", "in": "query" }, { "type": "string", "description": "application and service must not left empty at the same time", "name": "service", "in": "query" }, { "type": "string", "description": "version of dubbo service", "name": "serviceVersion", "in": "query" }, { "type": "string", "description": "group of dubbo service", "name": "serviceGroup", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.ConditionRouteDto" } } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Create a new condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Create a new condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "description": "Condition Rule Input", "name": "routeDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.ConditionRouteDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/condition/disable/{id}": { "put": { "description": "Disable the specified condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Disable the specified condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "Condition Rule Id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/condition/enable/{id}": { "put": { "description": "Enable the specified condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Enable the specified condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "Condition Rule Id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/condition/{id}": { "get": { "description": "Show the detail of one specified condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Show the detail of one specified condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "Condition Rule Id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.ConditionRouteDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Update condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Update condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "Condition Rule Id", "name": "id", "in": "path", "required": true }, { "description": "Condition Rule Input", "name": "routeDto", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.ConditionRouteDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "Delete the specified condition rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "ConditionRule" ], "summary": "Delete the specified condition rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "Condition Rule Id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/tag": { "get": { "description": "Search rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Search rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "application and service must not left empty at the same time", "name": "application", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.TagRouteDto" } } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Create a new tag rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Create a new tag rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "description": "rule input", "name": "tagRoute", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.TagRouteDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/tag/disable/{id}": { "put": { "description": "Disable the specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Disable the specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/tag/enable/{id}": { "put": { "description": "Enable the specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Enable the specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/rules/route/tag/{id}": { "get": { "description": "Show the detail of one specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Show the detail of one specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.TagRouteDto" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Update rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true }, { "description": "rule input", "name": "tagRoute", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.TagRouteDto" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "Delete the specified rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TagRule" ], "summary": "Delete the specified rule", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "rule id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/service": { "get": { "description": "Search services by different patterns and keywords", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Services" ], "summary": "Search services by different patterns and keywords", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "supported values: application, service or ip", "name": "pattern", "in": "query", "required": true }, { "type": "string", "description": "keyword to search", "name": "filter", "in": "query", "required": true }, { "type": "string", "description": "page number", "name": "page", "in": "query" }, { "type": "string", "description": "page size", "name": "size", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.ListServiceByPage" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/service/{service}": { "get": { "description": "Show detail of the specified service", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Services" ], "summary": "Show detail of the specified service", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" }, { "type": "string", "description": "service format: 'group/service:version'", "name": "service", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/model.ServiceDetailDTO" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/services": { "get": { "description": "Get all services", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Services" ], "summary": "Get all services", "parameters": [ { "type": "string", "default": "dev", "description": "environment", "name": "env", "in": "path" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "type": "string" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/accesslog": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficAccesslog" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "application name", "name": "application", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Accesslog" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficAccesslog" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "accesslog", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Accesslog" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficAccesslog" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "accesslog", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Accesslog" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficAccesslog" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "application name", "name": "application", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/argument": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficArgument" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Argument" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficArgument" ], "summary": "update rule", "parameters": [ { "description": "rule", "name": "argument", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Argument" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficArgument" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "argument", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Argument" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficArgument" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/gray": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficGray" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "application name", "name": "application", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Gray" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficGray" ], "summary": "update rule", "parameters": [ { "description": "rule", "name": "gray", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Gray" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficGray" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "gray", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Gray" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficGray" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "application name", "name": "application", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/mock": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficMock" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Mock" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficMock" ], "summary": "update rule", "parameters": [ { "description": "rule", "name": "mock", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Mock" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficMock" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "mock", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Mock" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficMock" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/region": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRegion" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Region" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRegion" ], "summary": "update rule", "parameters": [ { "description": "rule", "name": "region", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Region" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRegion" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "region", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Region" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRegion" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/retry": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRetry" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Retry" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRetry" ], "summary": "update rule", "parameters": [ { "description": "rule", "name": "retry", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Retry" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRetry" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "retry", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Retry" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficRetry" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/timeout": { "get": { "description": "get timeout rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficTimeout" ], "summary": "get timeout rule list", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Timeout" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update a new timeout rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficTimeout" ], "summary": "update a new timeout rule", "parameters": [ { "description": "timeout rule", "name": "timeout", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Timeout" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "Create a new timeout rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficTimeout" ], "summary": "Create a new timeout rule", "parameters": [ { "description": "timeout rule", "name": "timeout", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Timeout" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete a new timeout rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficTimeout" ], "summary": "delete a new timeout rule", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "boolean" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/traffic/weight": { "get": { "description": "get rule list", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficWeight" ], "summary": "get rule list", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/model.Weight" } } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "put": { "description": "update rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficWeight" ], "summary": "update rule", "parameters": [ { "description": "rule", "name": "weight", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Weight" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "post": { "description": "create rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficWeight" ], "summary": "create rule", "parameters": [ { "description": "rule", "name": "weight", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.Weight" } } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/model.HTTPError" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } }, "delete": { "description": "delete rule", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "TrafficWeight" ], "summary": "delete rule", "parameters": [ { "type": "string", "description": "service name", "name": "service", "in": "query", "required": true }, { "type": "string", "description": "service version", "name": "version", "in": "query", "required": true }, { "type": "string", "description": "service group", "name": "group", "in": "query", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "bool" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/model.HTTPError" } } } } }, "/api/{env}/version": { "get": { "description": "show basic information of the Admin process", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "metrics" ], "summary": "show basic information of the Admin process", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/version.Version" } } } } } }, "definitions": { "model.Accesslog": { "type": "object", "required": [ "accesslog", "application" ], "properties": { "accesslog": { "type": "string" }, "application": { "type": "string" } } }, "model.AddressMatch": { "type": "object", "properties": { "cird": { "type": "string" }, "exact": { "type": "string" }, "wildcard": { "type": "string" } } }, "model.Argument": { "type": "object", "required": [ "rule", "service" ], "properties": { "group": { "type": "string" }, "rule": { "type": "string" }, "service": { "type": "string" }, "version": { "type": "string" } } }, "model.ClusterMetricsRes": { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": { "type": "integer" } } } }, "model.ConditionMatch": { "type": "object", "properties": { "address": { "$ref": "#/definitions/model.AddressMatch" }, "application": { "$ref": "#/definitions/model.ListStringMatch" }, "param": { "type": "array", "items": { "$ref": "#/definitions/model.ParamMatch" } }, "service": { "$ref": "#/definitions/model.ListStringMatch" } } }, "model.ConditionRouteDto": { "type": "object", "required": [ "conditions", "configVersion", "enabled" ], "properties": { "application": { "type": "string" }, "conditions": { "type": "array", "items": { "type": "string" } }, "configVersion": { "type": "string" }, "enabled": { "type": "boolean" }, "force": { "type": "boolean" }, "id": { "type": "string" }, "priority": { "type": "integer" }, "runtime": { "type": "boolean" }, "service": { "type": "string" }, "serviceGroup": { "type": "string" }, "serviceVersion": { "type": "string" } } }, "model.Consumer": { "type": "object", "properties": { "address": { "type": "string" }, "alived": { "type": "integer" }, "application": { "type": "string" }, "collected": { "$ref": "#/definitions/time.Duration" }, "created": { "type": "string" }, "expired": { "$ref": "#/definitions/time.Duration" }, "hash": { "type": "string" }, "id": { "type": "integer" }, "ids": { "type": "array", "items": { "type": "integer" } }, "miss": { "type": "boolean" }, "modified": { "type": "string" }, "now": { "type": "string" }, "operator": { "type": "string" }, "operatorAddress": { "type": "string" }, "parameters": { "type": "string" }, "registry": { "type": "string" }, "result": { "type": "string" }, "service": { "type": "string" }, "statistics": { "type": "string" }, "username": { "type": "string" } } }, "model.DynamicConfig": { "type": "object", "properties": { "application": { "type": "string" }, "configVersion": { "type": "string" }, "configs": { "type": "array", "items": { "$ref": "#/definitions/model.OverrideConfig" } }, "enabled": { "type": "boolean" }, "id": { "type": "string" }, "service": { "type": "string" }, "serviceGroup": { "type": "string" }, "serviceVersion": { "type": "string" } } }, "model.FlowMetricsRes": { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": { "type": "number" } } } }, "model.Gray": { "type": "object", "required": [ "application", "tags" ], "properties": { "application": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/model.Tag" } } } }, "model.HTTPError": { "type": "object", "properties": { "error": { "description": "error message", "type": "string" } } }, "model.ListMockRulesByPage": { "type": "object", "properties": { "content": { "type": "array", "items": { "$ref": "#/definitions/model.MockRule" } }, "total": { "type": "integer" } } }, "model.ListServiceByPage": { "type": "object", "properties": { "content": { "type": "array", "items": { "$ref": "#/definitions/model.ServiceDTO" } }, "first": { "type": "boolean" }, "last": { "type": "boolean" }, "offset": { "type": "integer" }, "pageNumber": { "type": "string" }, "size": { "type": "string" }, "totalElements": { "type": "integer" }, "totalPages": { "type": "integer" } } }, "model.ListStringMatch": { "type": "object", "properties": { "oneof": { "type": "array", "items": { "$ref": "#/definitions/model.StringMatch" } } } }, "model.Metadata": { "type": "object", "properties": { "configCenter": { "type": "string" }, "metadataCenter": { "type": "string" }, "protocols": { "type": "array", "items": {} }, "registry": { "type": "string" }, "rules": { "type": "array", "items": { "type": "string" } }, "versions": { "type": "array", "items": {} } } }, "model.Mock": { "type": "object", "required": [ "mock", "service" ], "properties": { "group": { "type": "string" }, "mock": { "type": "string" }, "service": { "type": "string" }, "version": { "type": "string" } } }, "model.MockRule": { "type": "object", "properties": { "enable": { "type": "boolean" }, "id": { "type": "integer" }, "methodName": { "type": "string" }, "rule": { "type": "string" }, "serviceName": { "type": "string" } } }, "model.OverrideConfig": { "type": "object", "properties": { "addresses": { "type": "array", "items": { "type": "string" } }, "applications": { "type": "array", "items": { "type": "string" } }, "enabled": { "type": "boolean" }, "match": { "$ref": "#/definitions/model.ConditionMatch" }, "parameters": { "type": "object", "additionalProperties": true }, "providerAddresses": { "type": "array", "items": { "type": "string" } }, "services": { "type": "array", "items": { "type": "string" } }, "side": { "type": "string" }, "type": { "type": "string" } } }, "model.ParamMatch": { "type": "object", "properties": { "key": { "type": "string" }, "value": { "$ref": "#/definitions/model.StringMatch" } } }, "model.Provider": { "type": "object", "properties": { "address": { "type": "string" }, "alived": { "type": "integer" }, "application": { "type": "string" }, "created": { "type": "string" }, "dynamic": { "type": "boolean" }, "enabled": { "type": "boolean" }, "expired": { "$ref": "#/definitions/time.Duration" }, "hash": { "type": "string" }, "id": { "type": "integer" }, "ids": { "type": "array", "items": { "type": "integer" } }, "miss": { "type": "boolean" }, "modified": { "type": "string" }, "now": { "type": "string" }, "operator": { "type": "string" }, "operatorAddress": { "type": "string" }, "parameters": { "type": "string" }, "registry": { "type": "string" }, "registrySource": { "$ref": "#/definitions/model.RegistrySource" }, "serialization": { "type": "string" }, "service": { "type": "string" }, "timeout": { "type": "integer" }, "url": { "type": "string" }, "username": { "type": "string" }, "weight": { "type": "integer" } } }, "model.Region": { "type": "object", "required": [ "rule", "service" ], "properties": { "group": { "type": "string" }, "rule": { "type": "string" }, "service": { "type": "string" }, "version": { "type": "string" } } }, "model.RegistrySource": { "type": "string", "enum": [ "ALL" ], "x-enum-varnames": [ "All" ] }, "model.Retry": { "type": "object", "required": [ "retry", "service" ], "properties": { "group": { "type": "string" }, "retry": { "type": "integer" }, "service": { "type": "string" }, "version": { "type": "string" } } }, "model.ServiceDTO": { "type": "object", "properties": { "appName": { "type": "string" }, "group": { "type": "string" }, "registrySource": { "$ref": "#/definitions/model.RegistrySource" }, "service": { "type": "string" }, "version": { "type": "string" } } }, "model.ServiceDetailDTO": { "type": "object", "properties": { "application": { "type": "string" }, "consumers": { "type": "array", "items": { "$ref": "#/definitions/model.Consumer" } }, "metadata": {}, "providers": { "type": "array", "items": { "$ref": "#/definitions/model.Provider" } }, "service": { "type": "string" } } }, "model.StringMatch": { "type": "object", "properties": { "empty": { "type": "string" }, "exact": { "type": "string" }, "noempty": { "type": "string" }, "prefix": { "type": "string" }, "regex": { "type": "string" }, "wildcard": { "type": "string" } } }, "model.Tag": { "type": "object", "required": [ "match", "name" ], "properties": { "addresses": { "type": "array", "items": { "type": "string" } }, "match": { "type": "array", "items": { "$ref": "#/definitions/model.ParamMatch" } }, "name": { "type": "string" } } }, "model.TagRouteDto": { "type": "object", "required": [ "configVersion", "enabled", "tags" ], "properties": { "application": { "type": "string" }, "configVersion": { "type": "string" }, "enabled": { "type": "boolean" }, "force": { "type": "boolean" }, "id": { "type": "string" }, "priority": { "type": "integer" }, "runtime": { "type": "boolean" }, "service": { "type": "string" }, "serviceGroup": { "type": "string" }, "serviceVersion": { "type": "string" }, "tags": { "type": "array", "items": { "$ref": "#/definitions/model.Tag" } } } }, "model.Timeout": { "type": "object", "required": [ "service", "timeout" ], "properties": { "group": { "type": "string" }, "service": { "type": "string" }, "timeout": { "type": "integer" }, "version": { "type": "string" } } }, "model.Weight": { "type": "object", "required": [ "match", "weight" ], "properties": { "match": { "$ref": "#/definitions/model.ConditionMatch" }, "weight": { "type": "integer" } } }, "time.Duration": { "type": "integer", "enum": [ 1, 1000, 1000000, 1000000000, 60000000000, 3600000000000, 1, 1000, 1000000, 1000000000, 60000000000, 3600000000000 ], "x-enum-varnames": [ "Nanosecond", "Microsecond", "Millisecond", "Second", "Minute", "Hour", "Nanosecond", "Microsecond", "Millisecond", "Second", "Minute", "Hour" ] }, "version.Version": { "type": "object", "properties": { "buildDate": { "type": "string" }, "compiler": { "type": "string" }, "gitCommit": { "type": "string" }, "gitTreeState": { "type": "string" }, "gitVersion": { "type": "string" }, "goVersion": { "type": "string" }, "platform": { "type": "string" } } } } }