NpmNetworkActivity

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

Information about the network activity of the build.

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.

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard