diff --git a/dns.go b/dns.go index 133a890b7411ad63e8ea6d71cc4674ab5a807f49..6fe937261900f9368ea3da5c9437a54ac38b633d 100644 --- a/dns.go +++ b/dns.go @@ -2,10 +2,8 @@ package cachet import ( "net" - - "strings" - "regexp" + "strings" "github.com/Sirupsen/logrus" "github.com/miekg/dns" diff --git a/monitor.go b/monitor.go index e508c83c080ef5323c22671b1ab0410cb7342549..f7cbba6b9074b696405714c41b4480361a6966df 100644 --- a/monitor.go +++ b/monitor.go @@ -50,10 +50,10 @@ type AbstractMonitor struct { // lag / average(lagHistory) * 100 = percentage above average lag // PerformanceThreshold sets the % limit above which this monitor will trigger degraded-performance - PerformanceThreshold float32 + // PerformanceThreshold float32 - history []bool - lagHistory []float32 + history []bool + // lagHistory []float32 lastFailReason string incident *Incident config *CachetMonitor