我在Swagger规范中有一个其他定义的枚举:
"action": {
"title": "Action",
"description": "Action to apply to matching requests",
"type": "object",
"enum": [
{"delayAction": {"$ref": "#/definitions/delayAction"}},
{"abortAction": {"$ref": "#/definitions/abortAction"}},
{"traceAction": {"$ref": "#/definitions/traceAction"}}
]
}
Run Code Online (Sandbox Code Playgroud)
并且delayAction,abortAction和traceAction都被定义.
但是在Swagger UI中,模型action是空的.
如何修改我的Swagger定义,以便Swagger UI可以显示action模型中的定义?
我有两个HAProxy实例.两个实例都启用了统计信息并且工作正常.
我试图将两个实例的统计数据合并为一个,以便我可以使用单个HAProxy来查看前/后端统计信息.我试图在两个haproxy实例的同一端口上使用stats监听器,但这不起作用.我已尝试使用套接字接口,但这仅报告其中一个接口.
有任何想法吗?
我的一个haproxy配置文件如下所示:
global
daemon
maxconn 256
log 127.0.0.1 local0 debug
log-tag haproxy
stats socket /tmp/haproxy
defaults
log global
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http-in
bind *:8000
default_backend servers
log global
option httplog clf
backend servers
balance roundrobin
server ws8001 localhost:8001
server ws8002 localhost:8002
log global
listen admin
bind *:7000
stats enable
stats uri /
Run Code Online (Sandbox Code Playgroud)
除了前/后端服务器IP不同之外,其他haproxy配置是相同的.