ContainerCPUUsage

@Serializable
data class ContainerCPUUsage(val totalUsage: Int? = null, val percpuUsage: List<Int>? = null, val usageInKernelmode: Int? = null, val usageInUsermode: Int? = null)

All CPU stats aggregated since container inception.

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.

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "percpu_usage")
val percpuUsage: List<Int>?
Link copied to clipboard
@SerialName(value = "total_usage")
val totalUsage: Int?
Link copied to clipboard
@SerialName(value = "usage_in_kernelmode")
val usageInKernelmode: Int?
Link copied to clipboard
@SerialName(value = "usage_in_usermode")
val usageInUsermode: Int?