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
1 changed files with 6 additions and 0 deletions

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()
}