pub struct SysStats {Show 14 fields
pub meminfo: Vec<MeminfoValue>,
pub vmstat: Vec<VmstatValue>,
pub cpu_stat: Vec<CpuTimes>,
pub num_forks: Option<u64>,
pub num_irq_total: Option<u64>,
pub num_irq: Vec<InterruptCount>,
pub num_softirq_total: Option<u64>,
pub num_softirq: Vec<InterruptCount>,
pub collection_end_timestamp: Option<u64>,
pub devfreq: Vec<DevfreqValue>,
pub cpufreq_khz: Vec<u32>,
pub buddy_info: Vec<BuddyInfo>,
pub disk_stat: Vec<DiskStat>,
pub psi: Vec<PsiSample>,
}Expand description
Various Linux system stat counters from /proc. The fields in this message can be reported at different rates and with different granularity. See sys_stats_config.proto.
Fields§
§meminfo: Vec<MeminfoValue>§vmstat: Vec<VmstatValue>§cpu_stat: Vec<CpuTimes>One entry per cpu.
num_forks: Option<u64>Num processes forked since boot. Populated only if FORK_COUNT in config.stat_counters.
num_irq_total: Option<u64>Total num of irqs serviced since boot.
num_irq: Vec<InterruptCount>§num_softirq_total: Option<u64>Total num of softirqs since boot.
num_softirq: Vec<InterruptCount>Per-softirq count.
collection_end_timestamp: Option<u64>The time at which we finish collecting this set of samples; the top-level packet timestamp is the time at which we begin collection.
devfreq: Vec<DevfreqValue>One entry per device.
cpufreq_khz: Vec<u32>Cpu current frequency from /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq in kHz. One entry per cpu. Report 0 for offline cpu
buddy_info: Vec<BuddyInfo>One entry per each node’s zones.
disk_stat: Vec<DiskStat>One entry per disk device.
psi: Vec<PsiSample>One entry per PsiResource type.
Implementations§
Source§impl SysStats
impl SysStats
Sourcepub fn num_forks(&self) -> u64
pub fn num_forks(&self) -> u64
Returns the value of num_forks, or the default value if num_forks is unset.
Sourcepub fn num_irq_total(&self) -> u64
pub fn num_irq_total(&self) -> u64
Returns the value of num_irq_total, or the default value if num_irq_total is unset.
Sourcepub fn num_softirq_total(&self) -> u64
pub fn num_softirq_total(&self) -> u64
Returns the value of num_softirq_total, or the default value if num_softirq_total is unset.
Sourcepub fn collection_end_timestamp(&self) -> u64
pub fn collection_end_timestamp(&self) -> u64
Returns the value of collection_end_timestamp, or the default value if collection_end_timestamp is unset.
Trait Implementations§
Source§impl Message for SysStats
impl Message for SysStats
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for SysStats
Auto Trait Implementations§
impl Freeze for SysStats
impl RefUnwindSafe for SysStats
impl Send for SysStats
impl Sync for SysStats
impl Unpin for SysStats
impl UnwindSafe for SysStats
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].