pub struct ProductionMonitor { /* private fields */ }๐Deprecated since 1.2.0:
ProductionMonitor is a standalone placeholder not wired into EipClient; use EipClient diagnostics snapshots instead. The type will be removed in 2.0.
Expand description
Production monitoring system for EtherNet/IP operations
Implementationsยง
Sourceยงimpl ProductionMonitor
impl ProductionMonitor
pub fn new() -> Self
Sourcepub async fn record_read_success(&self, latency: Duration)
pub async fn record_read_success(&self, latency: Duration)
Record a successful read operation
Sourcepub async fn record_read_failure(&self, error_type: &str)
pub async fn record_read_failure(&self, error_type: &str)
Record a failed read operation
Sourcepub async fn record_write_success(&self, latency: Duration)
pub async fn record_write_success(&self, latency: Duration)
Record a successful write operation
Sourcepub async fn record_write_failure(&self, error_type: &str)
pub async fn record_write_failure(&self, error_type: &str)
Record a failed write operation
Sourcepub async fn record_partial_batch_failure(&self, error_type: &str)
pub async fn record_partial_batch_failure(&self, error_type: &str)
Record a partial batch failure without losing successful values.
Sourcepub async fn record_connection(&self, success: bool)
pub async fn record_connection(&self, success: bool)
Record a connection event
Sourcepub async fn record_disconnection(&self)
pub async fn record_disconnection(&self)
Record a disconnection event
pub fn classify_error(error: &EtherNetIpError) -> ErrorCategory
pub fn classify_error_type(error_type: &str) -> ErrorCategory
Sourcepub async fn get_metrics(&self) -> MonitoringMetrics
pub async fn get_metrics(&self) -> MonitoringMetrics
Get current metrics
Sourcepub async fn get_diagnostics_snapshot(&self) -> DiagnosticsSnapshot
pub async fn get_diagnostics_snapshot(&self) -> DiagnosticsSnapshot
Get a stable diagnostics snapshot for wrappers and service layers.
Sourcepub async fn start_monitoring(&self)
pub async fn start_monitoring(&self)
Start monitoring background tasks
Sourcepub async fn reset_consecutive_failures(&self)
pub async fn reset_consecutive_failures(&self)
Reset consecutive failures (call after successful recovery)
Sourcepub async fn record_verified_health_check(&self, is_healthy: bool)
pub async fn record_verified_health_check(&self, is_healthy: bool)
Record the outcome of an active, verified health check.
Trait Implementationsยง
Sourceยงimpl Clone for ProductionMonitor
impl Clone for ProductionMonitor
Auto Trait Implementationsยง
impl !RefUnwindSafe for ProductionMonitor
impl !UnwindSafe for ProductionMonitor
impl Freeze for ProductionMonitor
impl Send for ProductionMonitor
impl Sync for ProductionMonitor
impl Unpin for ProductionMonitor
impl UnsafeUnpin for ProductionMonitor
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