From 852432faf29a4988c30a809df65fa9d614922195 Mon Sep 17 00:00:00 2001 From: Dave Thaler Date: Sun, 27 Oct 2024 17:05:58 -0700 Subject: [PATCH] Fix value labels in event notifications Signed-off-by: Dave Thaler --- OrcanodeMonitor/Core/Fetcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OrcanodeMonitor/Core/Fetcher.cs b/OrcanodeMonitor/Core/Fetcher.cs index 0eec9ed..1cecbd6 100644 --- a/OrcanodeMonitor/Core/Fetcher.cs +++ b/OrcanodeMonitor/Core/Fetcher.cs @@ -1062,13 +1062,13 @@ private static void AddOrcanodeEvent(OrcanodeMonitorContext context, Orcanode no private static void AddMezmoStatusEvent(OrcanodeMonitorContext context, Orcanode node) { - string value = (node.MezmoStatus == OrcanodeOnlineStatus.Online) ? "up" : "OFFLINE"; + string value = node.MezmoStatus.ToString(); AddOrcanodeEvent(context, node, "Mezmo logging", value); } private static void AddDataplicityConnectionStatusEvent(OrcanodeMonitorContext context, Orcanode node) { - string value = (node.DataplicityConnectionStatus == OrcanodeOnlineStatus.Online) ? "up" : "OFFLINE"; + string value = node.DataplicityConnectionStatus.ToString(); AddOrcanodeEvent(context, node, "dataplicity connection", value); }