# HG changeset patch # User Kim Alvefur # Date 1626560390 -7200 # Node ID 285efde5e8a5f6707a895f656e8a903aef673a3c # Parent f7e26c43a9bc67559e35acd1710e08e9acc69b2f mod_pubsub_alertmanager: Exclude "ends at" timestamp for unresolved alerts Wow, does the problem end in year 1? Let me get my time machine! diff -r f7e26c43a9bc -r 285efde5e8a5 mod_pubsub_alertmanager/mod_pubsub_alertmanager.lua --- a/mod_pubsub_alertmanager/mod_pubsub_alertmanager.lua Fri Jul 16 17:35:28 2021 +0200 +++ b/mod_pubsub_alertmanager/mod_pubsub_alertmanager.lua Sun Jul 18 00:19:50 2021 +0200 @@ -47,7 +47,7 @@ item:text_tag("label", v, { name=k }); end item:tag("starts", { at = alert.startsAt}):up(); - if alert.endsAt then + if alert.endsAt and alert.status == "resolved" then item:tag("ends", { at = alert.endsAt }):up(); end if alert.generatorURL then