pub struct RuntimeMetrics { /* private fields */ }Implementations§
Source§impl RuntimeMetrics
impl RuntimeMetrics
pub fn new(now_ms: i64, prefix: impl Into<String>) -> Self
pub fn prefix(&self) -> &str
pub fn record_pass( &self, now_ms: i64, duration_ms: u64, claimed: u64, failed: u64, )
pub fn record_pass_failure(&self)
pub fn record_overrun(&self)
pub fn record_backlog(&self)
pub fn set_gauges(&self, active: i64, due: i64, stalled: i64)
pub fn readiness(&self, now_ms: i64, interval_secs: u64) -> Readiness
pub fn render_prometheus(&self, now_ms: i64) -> String
Auto Trait Implementations§
impl !Freeze for RuntimeMetrics
impl RefUnwindSafe for RuntimeMetrics
impl Send for RuntimeMetrics
impl Sync for RuntimeMetrics
impl Unpin for RuntimeMetrics
impl UnsafeUnpin for RuntimeMetrics
impl UnwindSafe for RuntimeMetrics
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