From c5fda2af7971c1457dcb7ba1200f1471f7132e96 Mon Sep 17 00:00:00 2001 From: Thomas Fan Date: Thu, 22 Feb 2018 11:49:37 -0500 Subject: [PATCH] STY: typo --- server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index 760d027..bce7a3f 100644 --- a/server/server.go +++ b/server/server.go @@ -241,7 +241,7 @@ func (s *serve) getAlerts(req *http.Request) []prometheus.Alert { alertName := req.URL.Query().Get(fmt.Sprintf("alertName.%d", i)) annotations := s.getMapFromString(req.URL.Query().Get(fmt.Sprintf("alertAnnotations.%d", i))) labels := s.getMapFromString(req.URL.Query().Get(fmt.Sprintf("alertLabels.%d", i))) - persistant := req.URL.Query().Get(fmt.Sprintf("alertPersistent.%d", i)) == "true" + persistent := req.URL.Query().Get(fmt.Sprintf("alertPersistent.%d", i)) == "true" alert := prometheus.Alert{ ServiceName: alertDecode.ServiceName, @@ -251,7 +251,7 @@ func (s *serve) getAlerts(req *http.Request) []prometheus.Alert { AlertAnnotations: annotations, AlertLabels: labels, Replicas: replicas, - AlertPersistent: persistant, + AlertPersistent: persistent, } s.formatAlert(&alert) if !s.isValidAlert(&alert) {