Додані повідомлення та перепрацьована структура застосунку та api

This commit is contained in:
2026-03-15 00:25:10 +02:00
parent 85483b85bb
commit 4bc9c11512
101 changed files with 5763 additions and 2546 deletions

View File

@@ -1,13 +0,0 @@
async function pushToMetrics(metric) {
if (!metric || !metric.type) return;
const payload = { ...metric, timestamp: Date.now() };
fetch("http://metrics:4005/push", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
}).catch(err => console.error("Metrics push error:", err));
}
module.exports = { pushToMetrics };