1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

revert percentage in id

This commit is contained in:
Massimo Candela
2023-05-16 11:23:45 -06:00
parent e39a8f3ded
commit 512274367f
2 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ export default class MonitorROAS extends Monitor {
if (percentage > this.toleranceDeletedRoasTA) { if (percentage > this.toleranceDeletedRoasTA) {
const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs disappeared from ${ta}`; const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs disappeared from ${ta}`;
this.publishAlert(`disappeared-${ta}-${parseInt(percentage)}`, this.publishAlert(`disappeared-${ta}`,
ta, ta,
{group: "default"}, {group: "default"},
message, message,
@@ -122,7 +122,7 @@ export default class MonitorROAS extends Monitor {
const metadata = this.rpki.getMetadata(); const metadata = this.rpki.getMetadata();
const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs are expiring in ${ta}`; const message = `Possible TA malfunction or incomplete VRP file: ${percentage.toFixed(2)}% of the ROAs are expiring in ${ta}`;
this.publishAlert(`expiring-${ta}-${parseInt(percentage)}`, this.publishAlert(`expiring-${ta}`,
ta, ta,
{group: "default"}, {group: "default"},
message, message,

View File

@@ -51,8 +51,8 @@ describe("RPKI monitoring external", function() {
it("ROA diff and expiration - external connector", function (done) { it("ROA diff and expiration - external connector", function (done) {
const expectedData = { const expectedData = {
"disappeared-ripe-60": { "disappeared-ripe": {
id: 'disappeared-ripe-60', id: 'disappeared-ripe',
truncated: false, truncated: false,
origin: 'roa-monitor', origin: 'roa-monitor',
affected: 'ripe', affected: 'ripe',
@@ -64,8 +64,8 @@ describe("RPKI monitoring external", function() {
} }
] ]
}, },
"expiring-ripe-50": { "expiring-ripe": {
id: 'expiring-ripe-50', id: 'expiring-ripe',
truncated: false, truncated: false,
origin: 'roa-monitor', origin: 'roa-monitor',
affected: 'ripe', affected: 'ripe',