pub struct ProtocolMetrics {Show 13 fields
smsg_it: IntCounterVec,
smsg_ib: IntCounterVec,
smsg_ot: IntCounterVec,
smsg_ob: IntCounterVec,
sdata_frames_t: IntCounterVec,
sdata_frames_b: IntCounterVec,
rmsg_it: IntCounterVec,
rmsg_ib: IntCounterVec,
rmsg_ot: IntCounterVec,
rmsg_ob: IntCounterVec,
rdata_frames_t: IntCounterVec,
rdata_frames_b: IntCounterVec,
ping: IntGaugeVec,
}Expand description
Use 1 ProtocolMetrics per Network.
I will contain all protocol related prometheus information
Fields§
§smsg_it: IntCounterVecmessages added to be send total, by STREAM,
smsg_ib: IntCounterVecmessages bytes added to be send throughput, by STREAM,
smsg_ot: IntCounterVecmessages removed from to be send, because they where finished total, by STREAM AND REASON(finished/canceled),
smsg_ob: IntCounterVecmessages bytes removed from to be send throughput, because they where finished total, by STREAM AND REASON(finished/dropped),
sdata_frames_t: IntCounterVecdata frames send by prio by CHANNEL,
sdata_frames_b: IntCounterVecdata frames bytes send by prio by CHANNEL,
rmsg_it: IntCounterVecmessages added to be received total, by STREAM,
rmsg_ib: IntCounterVecmessages bytes added to be received throughput, by STREAM,
rmsg_ot: IntCounterVecmessages removed from to be received, because they where finished total, by STREAM AND REASON(finished/canceled),
rmsg_ob: IntCounterVecmessages bytes removed from to be received throughput, because they where finished total, by STREAM AND REASON(finished/dropped),
rdata_frames_t: IntCounterVecdata frames send by prio by CHANNEL,
rdata_frames_b: IntCounterVecdata frames bytes send by prio by CHANNEL,
ping: IntGaugeVecping per CHANNEL //TODO: implement
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtocolMetrics
impl !RefUnwindSafe for ProtocolMetrics
impl Send for ProtocolMetrics
impl Sync for ProtocolMetrics
impl Unpin for ProtocolMetrics
impl !UnwindSafe for ProtocolMetrics
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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