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

+10
View File
@@ -388,6 +388,7 @@ export const flowMapServiceEdgeDtoSchema = z.object({
id: z.string(),
name: z.string(),
})).optional(),
observedOnly: z.literal(true).optional(),
})
export const flowMapServicePathDtoSchema = z.object({
@@ -395,6 +396,8 @@ export const flowMapServicePathDtoSchema = z.object({
clientName: z.string(),
viaId: z.string(),
viaName: z.string(),
viaIface: z.string().optional(),
/** Empty when IPFIX identified the exporter but the exit could not be inferred. */
enId: z.string(),
enName: z.string(),
serviceId: z.string(),
@@ -412,6 +415,12 @@ export const flowMapCountryServiceGroupDtoSchema = z.object({
export const flowMapHopsDtoSchema = z.object({
sourceWindow: flowSourceWindowSchema.optional(),
nodeUsers: z.record(z.string(), z.array(z.object({
clientId: z.string(),
clientName: z.string(),
bytes: z.number().nonnegative(),
bps: z.number().nonnegative(),
}))).optional(),
includesCurrentMinute: z.literal(true).optional(),
/** Link counters include private routed payload. Mesh visibility applies to the inferred graph. */
interfaceTraffic: z.array(z.object({
@@ -463,3 +472,4 @@ export type FlowMapServicePath = z.infer<typeof flowMapServicePathDtoSchema>
export type FlowMapCountryServiceGroup = z.infer<typeof flowMapCountryServiceGroupDtoSchema>
export type FlowMapHopsDto = z.infer<typeof flowMapHopsDtoSchema>
export type FlowMapInterfaceTraffic = NonNullable<FlowMapHopsDto["interfaceTraffic"]>[number]
export type FlowMapUser = NonNullable<FlowMapHopsDto["nodeUsers"]>[string][number]