NetworkUsageSettings
Interface in @sascom/jsclient.
API catalogue · @sascom/jsclient · Interface
TypeScript#
interface NetworkUsageSettingsMembers#
| 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?: numberHow 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?: numberDistinct details per point before further ones collapse into ~other.
maxRowsPerFlush#
TypeScript#
maxRowsPerFlush?: numberCap on rows per batch; the remainder is summed into one ~truncated row.
pointMapper#
TypeScript#
pointMapper?: (url: string, initiatorType: string) => string | nullOverrides the URL → tracking point mapping; returning null drops the entry.
resourceTiming#
TypeScript#
resourceTiming?: booleanObserve PerformanceResourceTiming for transfers the SDK does not make itself.