pub struct StreamingMetrics {
pub trades_processed: AtomicU64,
pub bars_generated: AtomicU64,
pub errors_total: AtomicU64,
pub backpressure_events: AtomicU64,
pub circuit_breaker_trips: AtomicU64,
pub memory_usage_bytes: AtomicU64,
pub max_queue_depth: AtomicU64,
pub total_block_time_ms: AtomicU64,
}Expand description
Streaming metrics for observability Issue #96 Task #6: Extended with queue depth and block time tracking
Fields§
§trades_processed: AtomicU64§bars_generated: AtomicU64§errors_total: AtomicU64§backpressure_events: AtomicU64§circuit_breaker_trips: AtomicU64§memory_usage_bytes: AtomicU64§max_queue_depth: AtomicU64§total_block_time_ms: AtomicU64Implementations§
Source§impl StreamingMetrics
impl StreamingMetrics
Sourcepub fn summary(&self) -> MetricsSummary
pub fn summary(&self) -> MetricsSummary
Get metrics summary
Trait Implementations§
Source§impl Debug for StreamingMetrics
impl Debug for StreamingMetrics
Source§impl Default for StreamingMetrics
impl Default for StreamingMetrics
Source§fn default() -> StreamingMetrics
fn default() -> StreamingMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for StreamingMetrics
impl RefUnwindSafe for StreamingMetrics
impl Send for StreamingMetrics
impl Sync for StreamingMetrics
impl Unpin for StreamingMetrics
impl UnsafeUnpin for StreamingMetrics
impl UnwindSafe for StreamingMetrics
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