From 6d3c3d0892ef0902effca0576b641c7622b1da8a Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 16 Jun 2022 18:55:51 -0400 Subject: [PATCH] refactor(metrics): Rename metric to metrics --- metric/metric.go => metrics/metrics.go | 2 +- watchdog/watchdog.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename metric/metric.go => metrics/metrics.go (99%) diff --git a/metric/metric.go b/metrics/metrics.go similarity index 99% rename from metric/metric.go rename to metrics/metrics.go index 89edbe1a..27f334f9 100644 --- a/metric/metric.go +++ b/metrics/metrics.go @@ -1,4 +1,4 @@ -package metric +package metrics import ( "strconv" diff --git a/watchdog/watchdog.go b/watchdog/watchdog.go index 32bc2867..454be010 100644 --- a/watchdog/watchdog.go +++ b/watchdog/watchdog.go @@ -10,7 +10,7 @@ import ( "github.com/TwiN/gatus/v3/config" "github.com/TwiN/gatus/v3/config/maintenance" "github.com/TwiN/gatus/v3/core" - "github.com/TwiN/gatus/v3/metric" + "github.com/TwiN/gatus/v3/metrics" "github.com/TwiN/gatus/v3/storage/store" ) @@ -62,7 +62,7 @@ func execute(endpoint *core.Endpoint, alertingConfig *alerting.Config, maintenan } result := endpoint.EvaluateHealth() if enabledMetrics { - metric.PublishMetricsForEndpoint(endpoint, result) + metrics.PublishMetricsForEndpoint(endpoint, result) } UpdateEndpointStatuses(endpoint, result) log.Printf(