add health for agent

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2019-06-19 11:05:58 -04:00
parent db23484f9f
commit a80106ab4a
No known key found for this signature in database
GPG key ID: A519480096146526

6
health.go Normal file
View 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()
}