Summary of one real flow through a gateway, emitted when the flow ends.

interface FlowClosed {
    bytesDown: number;
    bytesUp: number;
    cls: string;
    destinationId: string;
    dst: string;
    durationMs: number;
    edgeId: string;
    effect: "allow" | "deny";
    flowId: string;
    op: string;
    proto: "tcp" | "udp";
    reason: string;
    receiptHash: string;
    shapedMs: number;
    sourceId: string;
    startedAt: number;
    via:
        | "wireguard"
        | "socks5"
        | "http-connect"
        | "transparent";
}

Properties

bytesDown: number
bytesUp: number
cls: string
destinationId: string
dst: string
durationMs: number
edgeId: string
effect: "allow" | "deny"
flowId: string
op: string
proto: "tcp" | "udp"
reason: string
receiptHash: string
shapedMs: number
sourceId: string
startedAt: number
via:
    | "wireguard"
    | "socks5"
    | "http-connect"
    | "transparent"