pub struct AppUsageRecord {
pub app_id: i32,
pub user_id: i32,
pub timestamp: DateTime<Utc>,
pub foreground_cycles: u64,
pub background_cycles: u64,
pub auto_inc_id: u32,
}Expand description
One SRUM application resource usage record: CPU cycle counts for foreground and background execution per ~1-hour interval.
Fields§
§app_id: i32Integer ID of the application (look up in crate::IdMapEntry).
user_id: i32Integer ID of the user account.
timestamp: DateTime<Utc>UTC timestamp of the measurement interval start.
foreground_cycles: u64CPU cycles consumed while the application was in the foreground.
background_cycles: u64CPU cycles consumed while the application was in the background.
auto_inc_id: u32ESE page number used as AutoIncId proxy for gap detection. Gaps in this sequence indicate deleted records (anti-forensics). Not serialised to JSON output.
Trait Implementations§
Source§impl Clone for AppUsageRecord
impl Clone for AppUsageRecord
Source§fn clone(&self) -> AppUsageRecord
fn clone(&self) -> AppUsageRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppUsageRecord
impl Debug for AppUsageRecord
Source§impl<'de> Deserialize<'de> for AppUsageRecord
impl<'de> Deserialize<'de> for AppUsageRecord
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppUsageRecord
impl RefUnwindSafe for AppUsageRecord
impl Send for AppUsageRecord
impl Sync for AppUsageRecord
impl Unpin for AppUsageRecord
impl UnsafeUnpin for AppUsageRecord
impl UnwindSafe for AppUsageRecord
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