pub struct TopicSample {
pub visible: u64,
pub invisible: u64,
pub publish_rate: f64,
pub consume_rate: f64,
pub ack_rate: f64,
pub oldest_age: Option<f64>,
pub groups: Vec<(String, f64)>,
pub partial: bool,
}Expand description
One reading of a queue for its charts (GET /stats/topics/{name}): the counts, the rates, the age of the oldest
message and that of the largest groups.
Fields§
§visible: u64§invisible: u64§publish_rate: f64Messages published, delivered and acknowledged (deleted) per second.
consume_rate: f64§ack_rate: f64§oldest_age: Option<f64>Seconds; absent when the queue has no messages.
groups: Vec<(String, f64)>The largest groups with messages, largest first: the group and the age of its oldest message.
partial: boolTrait Implementations§
Source§impl Clone for TopicSample
impl Clone for TopicSample
Source§impl Debug for TopicSample
impl Debug for TopicSample
Source§impl Default for TopicSample
impl Default for TopicSample
Source§impl PartialEq for TopicSample
impl PartialEq for TopicSample
impl StructuralPartialEq for TopicSample
Auto Trait Implementations§
impl Freeze for TopicSample
impl RefUnwindSafe for TopicSample
impl Send for TopicSample
impl Sync for TopicSample
impl Unpin for TopicSample
impl UnsafeUnpin for TopicSample
impl UnwindSafe for TopicSample
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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