pub struct SysmonSample {
pub cpu: Option<CpuReading>,
pub io: Option<(String, f64)>,
pub io_rates: Vec<DiskRate>,
pub ram: Option<(f64, f64)>,
pub rambw: Option<f64>,
pub storage: Option<(String, f64)>,
pub net: Vec<NetRate>,
pub pressure: Option<PressureReading>,
pub procs: Vec<ProcReading>,
pub cgroups: Vec<CgroupReading>,
}Expand description
One completed sample window. A field is Some, or a list is
filled, exactly when its category was enabled and had a reading —
a disabled category is absent, not zero.
Fields§
§cpu: Option<CpuReading>§io: Option<(String, f64)>(device, utilization) — the busiest device this window.
io_rates: Vec<DiskRate>Each whole device’s throughput this window.
ram: Option<(f64, f64)>(committed, everything-including-page-cache).
rambw: Option<f64>Memory-bandwidth utilization against the configured peak.
storage: Option<(String, f64)>(mount point, space utilization) — the fullest filesystem.
net: Vec<NetRate>Each interface’s throughput this window.
pressure: Option<PressureReading>The stalled share of this window, by resource.
procs: Vec<ProcReading>Each watched process this window.
cgroups: Vec<CgroupReading>Each watched control group this window.
Trait Implementations§
Source§impl Clone for SysmonSample
impl Clone for SysmonSample
Source§impl Debug for SysmonSample
impl Debug for SysmonSample
Source§impl Default for SysmonSample
impl Default for SysmonSample
Source§impl PartialEq for SysmonSample
impl PartialEq for SysmonSample
impl StructuralPartialEq for SysmonSample
Auto Trait Implementations§
impl Forget for SysmonSample
impl Freeze for SysmonSamplewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<DiskRate>: Freeze,
PhantomData<NetRate>: Freeze,
PhantomData<ProcReading>: Freeze,
PhantomData<CgroupReading>: Freeze,
impl Move for SysmonSample
impl RefUnwindSafe for SysmonSample
impl Send for SysmonSamplewhere
RawVecInner: Send,
impl Sync for SysmonSamplewhere
RawVecInner: Sync,
impl Unpin for SysmonSample
impl UnsafeUnpin for SysmonSamplewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<DiskRate>: UnsafeUnpin,
PhantomData<NetRate>: UnsafeUnpin,
PhantomData<ProcReading>: UnsafeUnpin,
PhantomData<CgroupReading>: UnsafeUnpin,
impl UnwindSafe for SysmonSamplewhere
RawVecInner: UnwindSafe,
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more