pub struct StreamingMetrics {
pub vectors_processed: u64,
pub patterns_detected: u64,
pub avg_latency_ms: f64,
pub throughput_per_sec: f64,
pub windows_processed: u64,
pub bytes_processed: u64,
pub backpressure_events: u64,
pub errors: u64,
pub peak_buffer_size: usize,
pub start_time: Option<DateTime<Utc>>,
pub last_update: Option<DateTime<Utc>>,
}Expand description
Streaming metrics for monitoring performance
Fields§
§vectors_processed: u64Total vectors processed
patterns_detected: u64Total patterns detected
avg_latency_ms: f64Average latency in milliseconds
throughput_per_sec: f64Throughput (vectors per second)
windows_processed: u64Current window count
bytes_processed: u64Total bytes processed (if available)
backpressure_events: u64Backpressure events (times buffer was full)
errors: u64Processing errors
peak_buffer_size: usizePeak vectors in buffer
start_time: Option<DateTime<Utc>>Start time
last_update: Option<DateTime<Utc>>Last update time
Implementations§
Source§impl StreamingMetrics
impl StreamingMetrics
Sourcepub fn uptime_secs(&self) -> f64
pub fn uptime_secs(&self) -> f64
Calculate uptime in seconds
Sourcepub fn calculate_throughput(&mut self)
pub fn calculate_throughput(&mut self)
Calculate average throughput
Trait Implementations§
Source§impl Clone for StreamingMetrics
impl Clone for StreamingMetrics
Source§fn clone(&self) -> StreamingMetrics
fn clone(&self) -> StreamingMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§impl<'de> Deserialize<'de> for StreamingMetrics
impl<'de> Deserialize<'de> for StreamingMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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