influxdb/influxdb — pull request #850 by oliveagle (2014-08-19 09:17:09+00:00)
Title: makes listServers api more informative

API: cluster/servers

query the api will get result looks like this:

...
{
id: 1
isLeader: true
isUp: true
leaderConnectString: http://opsdevhdp02:8090
leaderRaftName: "813f022eeb23284b"
protobufConnectString: "opsdevhdp02:8099"
raftConnectionString: http://opsdevhdp02:8090
raftName: "813f022eeb23284b"
state: 4
stateName: "Potential"
}
-{
id: 2
isLeader: false
isUp: false
leaderConnectString: http://opsdevhdp02:8090
leaderRaftName: "813f022eeb23284b"
protobufConnectString: "opsdevhdp01:8099"
raftConnectionString: http://opsdevhdp01:8090
raftName: "4368e5809eef133a"
state: 4
stateName: "Potential"
}
...