Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TrafficRule

import type { TrafficRule } from "https://googleapis.deno.dev/v1/testing:v1.ts";

Network emulation parameters.

interface TrafficRule {
bandwidth?: number;
burst?: number;
delay?: number;
packetDuplicationRatio?: number;
packetLossRatio?: number;
}

§Properties

§
bandwidth?: number
[src]

Bandwidth in kbits/second.

§
burst?: number
[src]

Burst size in kbits.

§
delay?: number
[src]

Packet delay, must be >= 0.

§
packetDuplicationRatio?: number
[src]

Packet duplication ratio (0.0 - 1.0).

§
packetLossRatio?: number
[src]

Packet loss ratio (0.0 - 1.0).