ContainerCPUUsage

constructor(totalUsage: Int? = null, percpuUsage: List<Int>? = null, usageInKernelmode: Int? = null, usageInUsermode: Int? = null)

Parameters

totalUsage

Total CPU time consumed in nanoseconds (Linux) or 100's of nanoseconds (Windows).

percpuUsage

Total CPU time (in nanoseconds) consumed per core (Linux). This field is Linux-specific when using cgroups v1. It is omitted when using cgroups v2 and Windows containers.

usageInKernelmode

Time (in nanoseconds) spent by tasks of the cgroup in kernel mode (Linux), or time spent (in 100's of nanoseconds) by all container processes in kernel mode (Windows). Not populated for Windows containers using Hyper-V isolation.

usageInUsermode

Time (in nanoseconds) spent by tasks of the cgroup in user mode (Linux), or time spent (in 100's of nanoseconds) by all container processes in kernel mode (Windows). Not populated for Windows containers using Hyper-V isolation.