@@ -112,11 +134,13 @@ export function NodeHistory({ base, id, refresh, degraded }: { base: string | nu
>
}
-export function ServiceInspector({ service, paths, exits, exitName, country, base, refresh, windowLabel, history, shareOfVisible, flowAt, stale, activePath, onPath, onClose, filtered, onFilter, userId, ix, topology }: {
+export function ServiceInspector({ service, paths, exits, exitName, country, base, refresh, windowLabel, history, shareOfVisible, shareKnown = true, flowAt, stale, activePath, onPath, onClose, onCategory, filtered, onFilter, userId, ix, topology }: {
service: FlowMapService; paths: FlowMapServicePath[]; exits: FlowMapServiceEdge[]; exitName: (id: string) => string
country?: string; base: string | null; refresh: number; windowLabel: string; flowAt: string | null; stale: boolean
history?: {service?: FlowMapService; window: string}
shareOfVisible: boolean
+ shareKnown?: boolean
+ onCategory?: (category: string) => void
activePath: FlowMapServicePath | null; onPath: (path: FlowMapServicePath) => void
onClose: () => void; filtered: boolean; onFilter: () => void
userId?: string; ix?: boolean; topology?: ReadonlySet
@@ -151,7 +175,7 @@ export function ServiceInspector({ service, paths, exits, exitName, country, bas
const countryFilter = service.id.startsWith("cc:other|") ? "unknown" : country
const flows = recent?.data.conversationsList.filter(row => (!topology || topology.has(row.enId || row.serverId)) && matchesMapService(row, service.label, countryFilter))
.sort((a, b) => b.bps - a.bps).slice(0, 5) ?? []
- const asns = [...new Set(flows.flatMap(flow => flow.dstAsn ? [flow.dstAsn] : []))]
+ const selectedPath = activePath && paths.find(path => servicePathKey(path) === servicePathKey(activePath))
const rates = [...exits].sort((a, b) => b.bps - a.bps)
const exitIds = [...new Set([...rates.filter(e => !e.observedOnly).map(e => e.fromId), ...paths.map(p => p.enId).filter(Boolean)])]
const exporterIds = [...new Set([...rates.filter(e => e.observedOnly).map(e => e.fromId), ...paths.filter(p => !p.enId).map(p => p.viaId)])]
@@ -163,7 +187,6 @@ export function ServiceInspector({ service, paths, exits, exitName, country, bas
const averageWindow = history?.window ?? windowLabel
const volumeBytes = currentVolume ? average?.bytes : volume?.bytes
const trafficTypes = service.trafficTypes ?? []
- const serviceEvidence = service.serviceEvidence ?? []
const otherTypeBytes = Math.max(0, service.bytes - trafficTypes.reduce((sum, row) => sum + row.bytes, 0))
const typeShare = (bytes: number) => percent.format(Math.min(1, bytes / service.bytes))
const trafficQuery = new URLSearchParams({ view: "flows", service: service.label, serviceId: service.id, from: "map" })
@@ -180,39 +203,42 @@ export function ServiceInspector({ service, paths, exits, exitName, country, bas
{service.label}
-
{[service.category, asns.length === 1 ? "AS" + asns[0] : null, country, windowLabel].filter(Boolean).join(" · ")}
+ {[country, "IPFIX", windowLabel].filter(Boolean).join(" · ")}