pub struct InstrumentMetrics {
pub instrument_id: InstrumentId,
pub feed_stats: FeedStats,
pub connection_stats: ConnectionStats,
pub order_flow_metrics: OrderFlowMetrics,
pub latency_metrics: LatencyMetrics,
pub anomaly_score: f64,
pub health_score: f64,
pub last_updated: u64,
}Expand description
Comprehensive metrics for a specific trading instrument
Contains all monitoring data for a single instrument including connection health, data feed statistics, order flow analysis, and performance metrics. All timestamps are in nanoseconds for HFT precision.
Fields§
§instrument_id: InstrumentIdThe instrument identifier these metrics apply to
feed_stats: FeedStatsData feed statistics (messages per second, drop rate, etc.)
connection_stats: ConnectionStatsConnection health and performance statistics
order_flow_metrics: OrderFlowMetricsOrder flow analysis metrics
latency_metrics: LatencyMetricsDetailed latency breakdown
anomaly_score: f64Anomaly detection score (0.0 = normal, 1.0 = highly anomalous)
health_score: f64Overall health score (0.0 = critical, 1.0 = perfect health)
last_updated: u64Timestamp of last update in nanoseconds
Trait Implementations§
Source§impl Clone for InstrumentMetrics
impl Clone for InstrumentMetrics
Source§fn clone(&self) -> InstrumentMetrics
fn clone(&self) -> InstrumentMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InstrumentMetrics
impl RefUnwindSafe for InstrumentMetrics
impl Send for InstrumentMetrics
impl Sync for InstrumentMetrics
impl Unpin for InstrumentMetrics
impl UnwindSafe for InstrumentMetrics
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