From 8a52e45b4d1a85169bfbf46946306c9fed319126 Mon Sep 17 00:00:00 2001 From: Massimo Candela Date: Tue, 6 Feb 2024 09:24:04 +0100 Subject: [PATCH] fixed stable roa to string alert hash --- src/monitors/monitorROAS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monitors/monitorROAS.js b/src/monitors/monitorROAS.js index 4ee3e1bc..7cd35c61 100644 --- a/src/monitors/monitorROAS.js +++ b/src/monitors/monitorROAS.js @@ -356,7 +356,7 @@ export default class MonitorROAS extends Monitor { const matchedRules = this.getMoreSpecificMatches(prefix, false); // Get the matching rule for (let matchedRule of matchedRules) { - const alertsStrings = [...new Set(roas.map(this._roaToString))]; + const alertsStrings = [...new Set(roas.map(this._roaToString))].sort(); const message = alertsStrings.length <= 10 ? `ROAs change detected: ${alertsStrings.join("; ")}` : `ROAs change detected: ${alertsStrings.slice(0, 10).join("; ")} and more...`;