pub struct JobMetrics {Show 13 fields
pub cpu_time: Option<u64>,
pub cpu_peak: Option<u64>,
pub cpu_average: Option<u64>,
pub memory_peak: Option<u64>,
pub memory_average: Option<u64>,
pub network_received: Option<u64>,
pub network_sent: Option<u64>,
pub mirror_bytes: u64,
pub build_cache: BuildCacheCounts,
pub sock_throttled: Option<u64>,
pub cpu_periods: Option<u64>,
pub cpu_throttled: Option<u64>,
pub cpu_stalled: Option<u64>,
}Expand description
What a job used, over the samples taken while it ran (every few seconds). None until a sample exists.
Fields§
§cpu_time: Option<u64>CPU time, in milliseconds.
cpu_peak: Option<u64>The highest CPU use of a sample interval, in millicores.
cpu_average: Option<u64>CPU time over wall time, in millicores.
memory_peak: Option<u64>The highest memory use without page cache.
memory_average: Option<u64>The average memory use without page cache.
network_received: Option<u64>Bytes the container received.
network_sent: Option<u64>Bytes the container sent.
mirror_bytes: u64Of the bytes received, those the Docker Hub mirror served.
build_cache: BuildCacheCountsWhat the shared build cache served it and took from it.
sock_throttled: Option<u64>Times the kernel held its container’s sockets’ receive windows small because the container’s memory was
under pressure (memory.events sock_throttled): reclaim went badly, mostly because the host was short of
memory, and its downloads slowed. None when the kernel does not count it, or in records from before.
cpu_periods: Option<u64>The periods of its CPU quota, 100 ms each, in which it had work: its busy time (cpu.stat nr_periods).
None where the kernel keeps no CPU quota’s figures, or in records from before.
cpu_throttled: Option<u64>Of cpu_periods, those in which it used up its quota and was held until the next (nr_throttled): its CPU
cap held it back.
cpu_stalled: Option<u64>Milliseconds in which a task of it could run and waited for a CPU (cpu.pressure some): held by its cap,
or by the other runners and programs on the host’s CPUs. None without pressure stall information.
Implementations§
Source§impl JobMetrics
impl JobMetrics
Sourcepub fn totals(&self) -> Vec<Total>
pub fn totals(&self) -> Vec<Total>
What the job used, over its whole life: memory, CPU and network, each where the daemon measured it. The
peaks are of the samples taken every few seconds, so the figures’ note says that
(sampled_note).
Trait Implementations§
Source§impl Clone for JobMetrics
impl Clone for JobMetrics
Source§impl Debug for JobMetrics
impl Debug for JobMetrics
Source§impl Default for JobMetrics
impl Default for JobMetrics
Source§impl<'de> Deserialize<'de> for JobMetrics
impl<'de> Deserialize<'de> for JobMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for JobMetrics
Source§impl PartialEq for JobMetrics
impl PartialEq for JobMetrics
Source§impl Serialize for JobMetrics
impl Serialize for JobMetrics
impl StructuralPartialEq for JobMetrics
Auto Trait Implementations§
impl Forget for JobMetrics
impl Freeze for JobMetrics
impl RefUnwindSafe for JobMetrics
impl Send for JobMetrics
impl Sync for JobMetrics
impl Unpin for JobMetrics
impl UnsafeUnpin for JobMetrics
impl UnwindSafe for JobMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.