summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/poll.go b/poll.go
index b25e810..37a15ac 100644
--- a/poll.go
+++ b/poll.go
@@ -69,6 +69,15 @@ func findDroplet(name string) *DropletT {
return nil
}
+func findHypervisor(name string) *HyperT {
+ for _, h := range me.hypers {
+ if h.Hostname == name {
+ return h
+ }
+ }
+ return nil
+}
+
// check the state of the cluster and return a string
// that is intended to be sent to an uptime monitor like Kuma
func clusterHealthy() (bool, string) {