Struct async_nats::service::endpoint::Stats
source · pub struct Stats {
pub kind: String,
pub name: String,
pub subject: String,
pub metadata: HashMap<String, String>,
pub requests: usize,
pub errors: usize,
pub processing_time: Duration,
pub average_processing_time: Duration,
pub last_error: Option<Error>,
pub data: String,
pub queue_group: String,
}Available on crate feature
service only.Fields§
§kind: String§name: StringEndpoint name.
subject: StringThe subject on which the endpoint is registered
metadata: HashMap<String, String>Endpoint specific metadata
requests: usizeNumber of requests handled.
errors: usizeNumber of errors occurred.
processing_time: DurationTotal processing time for all requests.
average_processing_time: DurationAverage processing time for request.
last_error: Option<Error>Last error that occurred.
data: StringCustom data added by crate::service::Config::stats_handler
queue_group: StringQueue group to which this endpoint is assigned to.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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