pub struct MetricsSnapshot {
pub messages_accepted: u64,
pub messages_rejected: u64,
pub sessions_started: u64,
pub sessions_resolved: u64,
pub sessions_expired: u64,
pub sessions_cancelled: u64,
pub commitments_accepted: u64,
pub commitments_rejected: u64,
pub sessions_suspended: u64,
pub sessions_resumed: u64,
}Fields§
§messages_accepted: u64§messages_rejected: u64§sessions_started: u64§sessions_resolved: u64§sessions_expired: u64§sessions_cancelled: u64§commitments_accepted: u64§commitments_rejected: u64§sessions_suspended: u64§sessions_resumed: u64Implementations§
Source§impl MetricsSnapshot
impl MetricsSnapshot
Sourcepub fn prometheus_lines(&self, mode: &str, out: &mut String)
pub fn prometheus_lines(&self, mode: &str, out: &mut String)
Render this snapshot as Prometheus text-format lines for one mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request