From 4847fa33bac00d1138f7e6a6711f92decc4e2bb7 Mon Sep 17 00:00:00 2001 From: almostinf Date: Sat, 28 Oct 2023 15:12:59 +0300 Subject: [PATCH] make field private --- metrics/notifier.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metrics/notifier.go b/metrics/notifier.go index 83941a039..9149eee2b 100644 --- a/metrics/notifier.go +++ b/metrics/notifier.go @@ -15,7 +15,7 @@ type NotifierMetrics struct { SendersDroppedNotifications MetersCollection PlotsBuildDurationMs Histogram PlotsEvaluateTriggerDurationMs Histogram - FetchNotificationsDurationMs Histogram + fetchNotificationsDurationMs Histogram } // ConfigureNotifierMetrics is notifier metrics configurator. @@ -32,13 +32,13 @@ func ConfigureNotifierMetrics(registry Registry, prefix string) *NotifierMetrics SendersDroppedNotifications: NewMetersCollection(registry), PlotsBuildDurationMs: registry.NewHistogram("plots", "build", "duration", "ms"), PlotsEvaluateTriggerDurationMs: registry.NewHistogram("plots", "evaluate", "trigger", "duration", "ms"), - FetchNotificationsDurationMs: registry.NewHistogram("fetch", "notifications", "duration", "ms"), + fetchNotificationsDurationMs: registry.NewHistogram("fetch", "notifications", "duration", "ms"), } } // UpdateFetchNotificationsDurationMs - counts how much time has passed since fetchNotificationsStartTime in ms and updates the metric func (metrics *NotifierMetrics) UpdateFetchNotificationsDurationMs(fetchNotificationsStartTime time.Time) { - metrics.FetchNotificationsDurationMs.Update(time.Since(fetchNotificationsStartTime).Milliseconds()) + metrics.fetchNotificationsDurationMs.Update(time.Since(fetchNotificationsStartTime).Milliseconds()) } // MarkSendersDroppedNotifications marks metrics as 1 by contactType for dropped notifications.