NpmNetworkActivity

constructor(@Json(name = "networkRequestCount") networkRequestCount: Long, @Json(name = "serialNetworkRequestTime") serialNetworkRequestTime: Long, @Json(name = "wallClockNetworkRequestTime") wallClockNetworkRequestTime: Long, @Json(name = "fileDownloadSize") fileDownloadSize: Long, @Json(name = "fileDownloadCount") fileDownloadCount: Long, @Json(name = "methods") methods: Map<String, NpmNetworkActivitySubset>? = null, @Json(name = "registries") registries: Map<String, NpmNetworkActivitySubset>? = null, @Json(name = "registryMethods") registryMethods: Map<String, NpmNetworkActivitySubset>? = null)

Parameters

networkRequestCount

This represents the total count of network requests made during dependency resolution.

serialNetworkRequestTime

The duration in milliseconds representing the sum of times for potentially parallel network requests. It does not reflect wall clock time but offers a rough estimation of network activity.

wallClockNetworkRequestTime

The estimate in milliseconds representing the wall clock time spent on network requests during the current build.

fileDownloadSize

The total number of bytes downloaded for dependencies. It accounts only for the bytes of the files (e.g. TGZs, pakuments) downloaded and not the total network transfer.

fileDownloadCount

The total number of successfully downloaded files.

methods

A breakdown of the network activity by HTTP method, when available.

registries

A breakdown of the network activity by registry URL. This is empty when no registries were captured.

registryMethods

A breakdown of the network activity by HTTP method and registry, when available.