fix(map): исправить маршруты и легенду, показать трафик пользователей
Docker images / prepare-release (push) Successful in 11s
Docker images / backend-test (push) Successful in 10m33s
Docker images / frontend-image (push) Successful in 2m13s
Docker images / updater-image (push) Successful in 39s
Docker images / netflow-agent-image (push) Successful in 31s
Docker images / backend-image (push) Successful in 2m2s
Docker images / publish-release (push) Successful in 11s
Docker images / notify-webhook (push) Successful in 2s

This commit is contained in:
Denozordec committed 2026-11-26 11:58:31 +07:00
1 parent 589fc782f9
commit 2ca40fbb4d
14 files changed
+296 -132

No files matched your search

+4
View File
@@ -43,3 +43,7 @@ export function formatServicePathTitle(label: string, serviceLabel: string): str
if (label.includes(svc)) return label
return `${label} · ${svc}`
}
export function servicePathKey(p: { clientId: string; viaId: string; viaIface?: string; enId: string; serviceId: string }): string {
return JSON.stringify([p.clientId, p.viaId, p.viaIface, p.enId, p.serviceId])
}
+1 -1
View File
@@ -27,7 +27,7 @@ export function validateNetworkMapSnapshot(servers:unknown,gre:unknown,probes:un
import {flowMapHopsDtoSchema} from "@mmapp/contracts/traffic-flow"
import {isIpv4String} from "./gre-endpoint-resolve"
export const networkMapFlowSchema = flowMapHopsDtoSchema.required().partial({ sourceWindow: true, interfaceTraffic: true, includesCurrentMinute: true }).refine(data =>
export const networkMapFlowSchema = flowMapHopsDtoSchema.required().partial({ sourceWindow: true, interfaceTraffic: true, includesCurrentMinute: true, nodeUsers: true }).refine(data =>
(data.includesCurrentMinute
? !data.sourceWindow && data.rangeMinutes === 1 && data.windowSec >= 60 && data.windowSec < 120
: data.windowSec === data.rangeMinutes * 60 && (data.sourceWindow