0
获取集群健康在命令行,我可以运行下面的命令来查看etcd
群的群健康,像这样:从ETCD API
etcdctl cluster-health
member ac92bd2949b92e96 is healthy: got healthy result from https://172.31.26.170:2379
member bebdb18e18d35331 is healthy: got healthy result from https://172.31.21.117:2379
member c1c4d5cb0d474453 is healthy: got healthy result from https://172.31.18.126:2379
不过,我似乎无法找到API specification中记录的功能相同。如何通过编程方式确定REST API中的群集是否健康?