#[repr(align(64))]pub struct TuiMetrics {Show 28 fields
pub total_events: AtomicUsize,
pub error_count: AtomicUsize,
pub active_spans: AtomicUsize,
pub throughput: AtomicUsize,
pub peak_throughput: AtomicUsize,
pub start_epoch_secs: AtomicUsize,
pub level_trace: AtomicUsize,
pub level_debug: AtomicUsize,
pub level_info: AtomicUsize,
pub level_warn: AtomicUsize,
pub level_error: AtomicUsize,
pub level_fatal: AtomicUsize,
pub level_critical: AtomicUsize,
pub dropped_events: AtomicUsize,
pub fmt_clf: AtomicUsize,
pub fmt_json: AtomicUsize,
pub fmt_cef: AtomicUsize,
pub fmt_elf: AtomicUsize,
pub fmt_w3c: AtomicUsize,
pub fmt_gelf: AtomicUsize,
pub fmt_apache: AtomicUsize,
pub fmt_logstash: AtomicUsize,
pub fmt_log4j: AtomicUsize,
pub fmt_ndjson: AtomicUsize,
pub fmt_mcp: AtomicUsize,
pub fmt_otlp: AtomicUsize,
pub fmt_logfmt: AtomicUsize,
pub fmt_ecs: AtomicUsize,
}Expand description
Atomic counters for the TUI dashboard. Cache-line aligned (repr(align(64))).
Fields§
§total_events: AtomicUsizeTotal number of log events ingested.
error_count: AtomicUsizeNumber of error/fatal events.
active_spans: AtomicUsizeNumber of active spans (OpenTelemetry style).
throughput: AtomicUsizeCalculated events per second.
peak_throughput: AtomicUsizePeak throughput (events per second).
start_epoch_secs: AtomicUsizeEngine start time (epoch seconds).
level_trace: AtomicUsizeTRACE-level event count.
level_debug: AtomicUsizeDEBUG-level event count.
level_info: AtomicUsizeINFO-level event count.
level_warn: AtomicUsizeWARN-level event count.
level_error: AtomicUsizeERROR-level event count.
level_fatal: AtomicUsizeFATAL-level event count.
level_critical: AtomicUsizeCRITICAL-level event count.
dropped_events: AtomicUsizeNumber of events dropped due to full ring buffer.
fmt_clf: AtomicUsizeCLF format count.
fmt_json: AtomicUsizeJSON format count.
fmt_cef: AtomicUsizeCEF format count.
fmt_elf: AtomicUsizeELF format count.
fmt_w3c: AtomicUsizeW3C format count.
fmt_gelf: AtomicUsizeGELF format count.
fmt_apache: AtomicUsizeApache Access Log format count.
fmt_logstash: AtomicUsizeLogstash format count.
fmt_log4j: AtomicUsizeLog4j XML format count.
fmt_ndjson: AtomicUsizeNDJSON format count.
fmt_mcp: AtomicUsizeMCP format count.
fmt_otlp: AtomicUsizeOTLP format count.
fmt_logfmt: AtomicUsizeLogfmt format count.
fmt_ecs: AtomicUsizeECS format count.
Implementations§
Source§impl TuiMetrics
impl TuiMetrics
Sourcepub fn inc_events(&self)
pub fn inc_events(&self)
Increments the total event count.
Sourcepub fn inc_errors(&self)
pub fn inc_errors(&self)
Increments the error count.
Sourcepub fn inc_dropped(&self)
pub fn inc_dropped(&self)
Increments the dropped event count.
Sourcepub fn inc_format(&self, format: LogFormat)
pub fn inc_format(&self, format: LogFormat)
Increments the counter for the given log format.
Trait Implementations§
Source§impl Debug for TuiMetrics
impl Debug for TuiMetrics
Source§impl Default for TuiMetrics
impl Default for TuiMetrics
Source§fn default() -> TuiMetrics
fn default() -> TuiMetrics
Auto Trait Implementations§
impl !Freeze for TuiMetrics
impl RefUnwindSafe for TuiMetrics
impl Send for TuiMetrics
impl Sync for TuiMetrics
impl Unpin for TuiMetrics
impl UnsafeUnpin for TuiMetrics
impl UnwindSafe for TuiMetrics
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
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more