add notifications to infra page, add generic webhook notification channel

This commit is contained in:
Alex Holliday committed 2025-06-09 14:59:26 +08:00
1 parent de673ea5d1
commit 1b40aa0ded
6 files changed
+75 -76

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
const SERVICE_NAME = "BufferService";
const BUFFER_TIMEOUT = 1000 * 60 * 1; // 1 minute
const BUFFER_TIMEOUT = process.env.NODE_ENV === "development" ? 5000 : 1000 * 60 * 1; // 1 minute
const TYPE_MAP = {
http: "checks",
ping: "checks",
@@ -89,7 +89,7 @@ class BufferService {
}
this.buffers[bufferName] = [];
}
this.logger.info({
this.logger.debug({
message: `Flushed ${items} items`,
service: this.SERVICE_NAME,
method: "flushBuffers",