pub struct MetricEntry {
pub total_received: u64,
pub total_completed: u64,
pub total_process_errors: u64,
pub total_output_errors: u64,
pub streams_started: u64,
pub streams_completed: u64,
pub duplicates_rejected: u64,
pub stale_entries_removed: u64,
pub in_flight: usize,
pub throughput_per_sec: f64,
}Expand description
MetricEntry is the uniform struct utilized within metrics modules of fiddler.
let content = "This is a message being processed";
let metric = MetricEntry::default();Fields§
§total_received: u64total_received- Total messages received from input
total_completed: u64total_completed- Messages successfully processed through all outputs
total_process_errors: u64total_process_errors- Messages that encountered processing errors
total_output_errors: u64total_output_errors- Messages that encountered output errors
streams_started: u64streams_started- Number of streams started
streams_completed: u64streams_completed- Number of streams completed
duplicates_rejected: u64duplicates_rejected- Duplicate messages rejected
stale_entries_removed: u64stale_entries_removed- Stale entries cleaned up
in_flight: usizein_flight- Current number of messages being processed
throughput_per_sec: f64throughput_per_sec- Current throughput in messages per second
Trait Implementations§
Source§impl Clone for MetricEntry
impl Clone for MetricEntry
Source§fn clone(&self) -> MetricEntry
fn clone(&self) -> MetricEntry
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 MetricEntry
impl Debug for MetricEntry
Source§impl Default for MetricEntry
impl Default for MetricEntry
Source§fn default() -> MetricEntry
fn default() -> MetricEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricEntry
impl<'de> Deserialize<'de> for MetricEntry
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
Source§impl PartialEq for MetricEntry
impl PartialEq for MetricEntry
Source§impl Serialize for MetricEntry
impl Serialize for MetricEntry
impl StructuralPartialEq for MetricEntry
Auto Trait Implementations§
impl Freeze for MetricEntry
impl RefUnwindSafe for MetricEntry
impl Send for MetricEntry
impl Sync for MetricEntry
impl Unpin for MetricEntry
impl UnwindSafe for MetricEntry
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