pub struct QualityMonitor { /* private fields */ }Expand description
Real-time quality monitoring system
Implementations§
Source§impl QualityMonitor
impl QualityMonitor
Sourcepub fn with_config(config: MonitorConfig) -> Self
pub fn with_config(config: MonitorConfig) -> Self
Create new quality monitor with custom configuration
Sourcepub async fn start_monitoring(&mut self) -> Result<()>
pub async fn start_monitoring(&mut self) -> Result<()>
Start real-time monitoring
Sourcepub async fn stop_monitoring(&mut self) -> Result<()>
pub async fn stop_monitoring(&mut self) -> Result<()>
Stop monitoring
Sourcepub fn submit_quality_data(
&self,
session_id: String,
overall_quality: f32,
artifacts: Option<DetectedArtifacts>,
processing_latency_ms: u64,
metadata: HashMap<String, f32>,
) -> Result<()>
pub fn submit_quality_data( &self, session_id: String, overall_quality: f32, artifacts: Option<DetectedArtifacts>, processing_latency_ms: u64, metadata: HashMap<String, f32>, ) -> Result<()>
Submit quality data for monitoring
Sourcepub fn submit_performance_data(
&self,
session_id: String,
cpu_usage_percent: f32,
memory_usage_mb: f64,
throughput_samples_per_sec: f64,
queue_length: usize,
) -> Result<()>
pub fn submit_performance_data( &self, session_id: String, cpu_usage_percent: f32, memory_usage_mb: f64, throughput_samples_per_sec: f64, queue_length: usize, ) -> Result<()>
Submit performance data for monitoring
Sourcepub async fn get_dashboard(&self) -> Result<QualityDashboard>
pub async fn get_dashboard(&self) -> Result<QualityDashboard>
Get current dashboard data
Trait Implementations§
Source§impl Debug for QualityMonitor
impl Debug for QualityMonitor
Auto Trait Implementations§
impl Freeze for QualityMonitor
impl RefUnwindSafe for QualityMonitor
impl Send for QualityMonitor
impl Sync for QualityMonitor
impl Unpin for QualityMonitor
impl UnsafeUnpin for QualityMonitor
impl UnwindSafe for QualityMonitor
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> 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