add health for agent
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
db23484f9f
commit
a80106ab4a
1 changed files with 6 additions and 0 deletions
6
health.go
Normal file
6
health.go
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
package element
|
||||||
|
|
||||||
|
// Health returns the relative health score of the node (lower is better)
|
||||||
|
func (a *Agent) Health() int {
|
||||||
|
return a.members.GetHealthScore()
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue