Skip to content

Commit

Permalink
add active field for circle health
Browse files Browse the repository at this point in the history
  • Loading branch information
chengshiwen committed Sep 21, 2020
1 parent 1f8e632 commit 9226975
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ func (ip *Proxy) GetHealth() []map[string]interface{} {
go func(i int, c *Circle) {
defer wg.Done()
health[i] = map[string]interface{}{
"circle": map[string]interface{}{"id": c.CircleId, "name": c.Name, "write_only": c.WriteOnly},
"circle": map[string]interface{}{
"id": c.CircleId,
"name": c.Name,
"active": c.CheckActive(),
"write_only": c.WriteOnly,
},
"backends": c.GetHealth(),
}
}(i, c)
Expand Down

0 comments on commit 9226975

Please sign in to comment.