pub struct StorageAnalyzer { /* private fields */ }Expand description
Storage analyzer combining mount monitoring and anomaly detection.
Implementations§
Source§impl StorageAnalyzer
impl StorageAnalyzer
Sourcepub fn detector(&self) -> &LargeFileDetector
pub fn detector(&self) -> &LargeFileDetector
Get the anomaly detector for processing file events.
Sourcepub fn detector_mut(&mut self) -> &mut LargeFileDetector
pub fn detector_mut(&mut self) -> &mut LargeFileDetector
Get mutable anomaly detector for processing file events.
Sourcepub fn recent_anomalies(&self) -> impl Iterator<Item = &Anomaly>
pub fn recent_anomalies(&self) -> impl Iterator<Item = &Anomaly>
Get recent anomalies.
Sourcepub fn usage_history(&self, mount_point: &str) -> Option<&RingBuffer<f64>>
pub fn usage_history(&self, mount_point: &str) -> Option<&RingBuffer<f64>>
Get usage history for a mount point.
Sourcepub fn total_storage_bytes(&self) -> u64
pub fn total_storage_bytes(&self) -> u64
Get total storage across all mounts.
Sourcepub fn total_used_bytes(&self) -> u64
pub fn total_used_bytes(&self) -> u64
Get total used storage across all mounts.
Sourcepub fn overall_usage_percent(&self) -> f64
pub fn overall_usage_percent(&self) -> f64
Get overall usage percentage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StorageAnalyzer
impl RefUnwindSafe for StorageAnalyzer
impl Send for StorageAnalyzer
impl Sync for StorageAnalyzer
impl Unpin for StorageAnalyzer
impl UnsafeUnpin for StorageAnalyzer
impl UnwindSafe for StorageAnalyzer
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
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