Reference·JavaScript · @sascom/jsclientJavaScript

NetworkUsageSettings

Interface in @sascom/jsclient.

API catalogue · @sascom/jsclient · Interface

TypeScript#
interface NetworkUsageSettings

Members#

Member Kind Description
exclude Property URLs matching one of these are never counted.
flushIntervalMs Property How often a batch is sent to the server (default 60000).
include Property Only URLs matching one of these are counted (applied after exclude).
maxDetails Property Distinct details per point before further ones collapse into ~other.
maxRowsPerFlush Property Cap on rows per batch; the remainder is summed into one ~truncated row.
pointMapper Property Overrides the URL → tracking point mapping; returning null drops the entry.
resourceTiming Property Observe PerformanceResourceTiming for transfers the SDK does not make itself.

exclude#

TypeScript#
exclude?: (string | RegExp)[]

URLs matching one of these are never counted.

flushIntervalMs#

TypeScript#
flushIntervalMs?: number

How often a batch is sent to the server (default 60000).

include#

TypeScript#
include?: (string | RegExp)[]

Only URLs matching one of these are counted (applied after exclude).

maxDetails#

TypeScript#
maxDetails?: number

Distinct details per point before further ones collapse into ~other.

maxRowsPerFlush#

TypeScript#
maxRowsPerFlush?: number

Cap on rows per batch; the remainder is summed into one ~truncated row.

pointMapper#

TypeScript#
pointMapper?: (url: string, initiatorType: string) => string | null

Overrides the URL → tracking point mapping; returning null drops the entry.

resourceTiming#

TypeScript#
resourceTiming?: boolean

Observe PerformanceResourceTiming for transfers the SDK does not make itself.