Skip to content

Commit

Permalink
fixed stable roa to string alert hash
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Feb 6, 2024
1 parent 93ff8e2 commit 8a52e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monitors/monitorROAS.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...`;
Expand Down

0 comments on commit 8a52e45

Please sign in to comment.