ContainerMemoryStats

@Serializable
data class ContainerMemoryStats(val usage: Int? = null, val maxUsage: Int? = null, val stats: Map<String, Int>? = null, val failcnt: Int? = null, val limit: Int? = null, val commitbytes: Int? = null, val commitpeakbytes: Int? = null, val privateworkingset: Int? = null)

Aggregates all memory stats since container inception on Linux. Windows returns stats for commit and private working set only.

Parameters

usage

Current res_counter usage for memory. This field is Linux-specific and omitted for Windows containers.

maxUsage

Maximum usage ever recorded. This field is Linux-specific and only supported on cgroups v1. It is omitted when using cgroups v2 and for Windows containers.

stats

All the stats exported via memory.stat. when using cgroups v2. This field is Linux-specific and omitted for Windows containers.

failcnt

Number of times memory usage hits limits. This field is Linux-specific and only supported on cgroups v1. It is omitted when using cgroups v2 and for Windows containers.

limit

This field is Linux-specific and omitted for Windows containers.

commitbytes

Committed bytes. This field is Windows-specific and omitted for Linux containers.

commitpeakbytes

Peak committed bytes. This field is Windows-specific and omitted for Linux containers.

privateworkingset

Private working set. This field is Windows-specific and omitted for Linux containers.

Constructors

Link copied to clipboard
constructor(usage: Int? = null, maxUsage: Int? = null, stats: Map<String, Int>? = null, failcnt: Int? = null, limit: Int? = null, commitbytes: Int? = null, commitpeakbytes: Int? = null, privateworkingset: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "commitbytes")
val commitbytes: Int?
Link copied to clipboard
@SerialName(value = "commitpeakbytes")
val commitpeakbytes: Int?
Link copied to clipboard
@SerialName(value = "failcnt")
val failcnt: Int?
Link copied to clipboard
@SerialName(value = "limit")
val limit: Int?
Link copied to clipboard
@SerialName(value = "max_usage")
val maxUsage: Int?
Link copied to clipboard
@SerialName(value = "privateworkingset")
val privateworkingset: Int?
Link copied to clipboard
@SerialName(value = "stats")
val stats: Map<String, Int>?
Link copied to clipboard
@SerialName(value = "usage")
val usage: Int?