docs: fix bridge status report
This commit is contained in:
parent
2682a1ee28
commit
56279f6305
|
@ -35,8 +35,18 @@ emqx_bridge_schema {
|
||||||
|
|
||||||
desc_status {
|
desc_status {
|
||||||
desc {
|
desc {
|
||||||
en: """The status of the bridge"""
|
en: """The status of the bridge<br/>
|
||||||
zh: """Bridge 的状态"""
|
- <code>connecting</code>: the initial state before any health probes were made.<br/>
|
||||||
|
- <code>connected</code>: when the bridge passes the health probes.<br/>
|
||||||
|
- <code>disconnected</code>: when the bridge can not pass health probes.<br/>
|
||||||
|
- <code>stopped</code>: when the bridge resource is requested to be stopped.<br/>
|
||||||
|
- <code>inconsistent</code>: When not all the nodes are at the same status."""
|
||||||
|
zh: """Bridge 的连接状态<br/>
|
||||||
|
- <code>connecting</code>: 启动时的初始状态。<br/>
|
||||||
|
- <code>connected</code>: 桥接驱动健康检查正常。<br/>
|
||||||
|
- <code>disconnected</code>: 当桥接无法通过健康检查。<br/>
|
||||||
|
- <code>stopped</code>: 桥接处于停用状态。<br/>
|
||||||
|
- <code>inconsistent</code>: 集群中有各节点汇报的状态不一致。"""
|
||||||
}
|
}
|
||||||
label: {
|
label: {
|
||||||
en: "Bridge Status"
|
en: "Bridge Status"
|
||||||
|
@ -46,8 +56,16 @@ emqx_bridge_schema {
|
||||||
|
|
||||||
desc_node_status {
|
desc_node_status {
|
||||||
desc {
|
desc {
|
||||||
en: """The status of the bridge for each node"""
|
en: """The status of the bridge for each node.
|
||||||
zh: """每个节点的 Bridge 状态"""
|
- <code>connecting</code>: the initial state before any health probes were made.<br/>
|
||||||
|
- <code>connected</code>: when the bridge passes the health probes.<br/>
|
||||||
|
- <code>disconnected</code>: when the bridge can not pass health probes.<br/>
|
||||||
|
- <code>stopped</code>: when the bridge resource is requested to be stopped."""
|
||||||
|
zh: """每个节点的 Bridge 状态
|
||||||
|
- <code>connecting</code>: 启动时的初始状态。<br/>
|
||||||
|
- <code>connected</code>: 桥接驱动健康检查正常。<br/>
|
||||||
|
- <code>disconnected</code>: 当桥接无法通过健康检查。<br/>
|
||||||
|
- <code>stopped</code>: 桥接处于停用状态。"""
|
||||||
}
|
}
|
||||||
label: {
|
label: {
|
||||||
en: "Node Bridge Status"
|
en: "Node Bridge Status"
|
||||||
|
|
|
@ -208,7 +208,7 @@ desc(_) ->
|
||||||
undefined.
|
undefined.
|
||||||
|
|
||||||
status() ->
|
status() ->
|
||||||
hoconsc:enum([connected, disconnected, connecting]).
|
hoconsc:enum([connected, disconnected, connecting, inconsistent]).
|
||||||
|
|
||||||
node_name() ->
|
node_name() ->
|
||||||
{"node", mk(binary(), #{desc => ?DESC("desc_node_name"), example => "emqx@127.0.0.1"})}.
|
{"node", mk(binary(), #{desc => ?DESC("desc_node_name"), example => "emqx@127.0.0.1"})}.
|
||||||
|
|
Loading…
Reference in New Issue