mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
report slack uppercase name error
This commit is contained in:
@@ -60,7 +60,7 @@ reports:
|
|||||||
# - joe@example.org
|
# - joe@example.org
|
||||||
# - noc@example.org
|
# - noc@example.org
|
||||||
#
|
#
|
||||||
# - file: ReportSlack
|
# - file: reportSlack
|
||||||
# channels:
|
# channels:
|
||||||
# - hijack
|
# - hijack
|
||||||
# - newprefix
|
# - newprefix
|
||||||
@@ -69,7 +69,6 @@ reports:
|
|||||||
# hookUrl: _YOUR_SLACK_WEBHOOK_URL_
|
# hookUrl: _YOUR_SLACK_WEBHOOK_URL_
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
checkStaleNotificationsSeconds: 60
|
checkStaleNotificationsSeconds: 60
|
||||||
notificationIntervalSeconds: 1800 # Repeat the same alert (which keeps being triggered) after x seconds
|
notificationIntervalSeconds: 1800 # Repeat the same alert (which keeps being triggered) after x seconds
|
||||||
clearNotificationQueueAfterSeconds: 1900 # Stop with the alert for an event which didn't happen again in x seconds
|
clearNotificationQueueAfterSeconds: 1900 # Stop with the alert for an event which didn't happen again in x seconds
|
||||||
|
|||||||
@@ -183,6 +183,8 @@ export default class ConnectorTest extends Connector{
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
import Report from "./report";
|
import Report from "./report";
|
||||||
|
|
||||||
export default class ReportEmail extends Report {
|
export default class ReportFile extends Report {
|
||||||
|
|
||||||
constructor(channels, params, env) {
|
constructor(channels, params, env) {
|
||||||
super(channels, params, env);
|
super(channels, params, env);
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
import Report from "./report";
|
import Report from "./report";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export default class ReportEmail extends Report {
|
export default class ReportSlack extends Report {
|
||||||
|
|
||||||
constructor(channels, params, env) {
|
constructor(channels, params, env) {
|
||||||
super(channels, params, env);
|
super(channels, params, env);
|
||||||
|
|||||||
@@ -212,12 +212,11 @@ describe("Tests", function() {
|
|||||||
.read(file, 1)
|
.read(file, 1)
|
||||||
.then((line) => {
|
.then((line) => {
|
||||||
const lineMessage = line.split(" ").slice(3, 5).join(" ").trim();
|
const lineMessage = line.split(" ").slice(3, 5).join(" ").trim();
|
||||||
|
expect(lineMessage).to.equal(message);
|
||||||
expect(lineMessage).to
|
|
||||||
.equal(message);
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user