mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
Merge branch 'dev' into dist
This commit is contained in:
@ -87,7 +87,7 @@ export default class MonitorROAS extends Monitor {
|
||||
if (percentage > this.toleranceDeletedRoasTA) {
|
||||
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,
|
||||
{group: "default"},
|
||||
message,
|
||||
@ -122,7 +122,7 @@ export default class MonitorROAS extends Monitor {
|
||||
const metadata = this.rpki.getMetadata();
|
||||
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,
|
||||
{group: "default"},
|
||||
message,
|
||||
|
@ -51,8 +51,8 @@ describe("RPKI monitoring external", function() {
|
||||
it("ROA diff and expiration - external connector", function (done) {
|
||||
|
||||
const expectedData = {
|
||||
"disappeared-ripe-60": {
|
||||
id: 'disappeared-ripe-60',
|
||||
"disappeared-ripe": {
|
||||
id: 'disappeared-ripe',
|
||||
truncated: false,
|
||||
origin: 'roa-monitor',
|
||||
affected: 'ripe',
|
||||
@ -64,8 +64,8 @@ describe("RPKI monitoring external", function() {
|
||||
}
|
||||
]
|
||||
},
|
||||
"expiring-ripe-50": {
|
||||
id: 'expiring-ripe-50',
|
||||
"expiring-ripe": {
|
||||
id: 'expiring-ripe',
|
||||
truncated: false,
|
||||
origin: 'roa-monitor',
|
||||
affected: 'ripe',
|
||||
|
Reference in New Issue
Block a user