pub struct ProductionMonitor { /* private fields */ }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
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
Sourcepub fn classify_error(error: &EtherNetIpError) -> ErrorCategory
pub fn classify_error(error: &EtherNetIpError) -> ErrorCategory
Classifies a structured library error for diagnostics and retries.
Sourcepub fn classify_error_type(error_type: &str) -> ErrorCategory
pub fn classify_error_type(error_type: &str) -> ErrorCategory
Classifies a legacy string error name or message.
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.