pub struct ProcessStatsPolicy {
pub collect_cpu: bool,
pub collect_memory: bool,
pub collect_process_count: bool,
pub collect_filesystem_bytes: bool,
pub collect_network_bytes: bool,
pub collect_exit_status: bool,
}Expand description
Describes the process stats policy portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§collect_cpu: boolWhether collect cpu is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
collect_memory: boolWhether collect memory is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
collect_process_count: boolCount of collect process items observed or included in this record.
collect_filesystem_bytes: boolcollect filesystem bytes used for bounds checks, summaries, or truncation evidence.
collect_network_bytes: boolcollect network bytes used for bounds checks, summaries, or truncation evidence.
collect_exit_status: boolWhether collect exit status is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
Implementations§
Source§impl ProcessStatsPolicy
impl ProcessStatsPolicy
Sourcepub fn default_counters() -> Self
pub fn default_counters() -> Self
Builds the default counters value. This is data construction and performs no I/O, journal append, event publication, or process work.
Trait Implementations§
Source§impl Clone for ProcessStatsPolicy
impl Clone for ProcessStatsPolicy
Source§fn clone(&self) -> ProcessStatsPolicy
fn clone(&self) -> ProcessStatsPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProcessStatsPolicy
impl Debug for ProcessStatsPolicy
Source§impl<'de> Deserialize<'de> for ProcessStatsPolicy
impl<'de> Deserialize<'de> for ProcessStatsPolicy
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>,
Source§impl PartialEq for ProcessStatsPolicy
impl PartialEq for ProcessStatsPolicy
Source§fn eq(&self, other: &ProcessStatsPolicy) -> bool
fn eq(&self, other: &ProcessStatsPolicy) -> bool
self and other values to be equal, and is used by ==.