pub struct Stats {
pub name: String,
pub subject: String,
pub requests: usize,
pub errors: usize,
pub processing_time: Duration,
pub average_processing_time: Duration,
pub last_error: Option<Error>,
pub data: Option<Value>,
pub queue_group: String,
}
Available on crate feature
service
only.Fields§
§name: String
Endpoint name.
subject: String
The subject on which the endpoint is registered
requests: usize
Number of requests handled.
errors: usize
Number of errors occurred.
processing_time: Duration
Total processing time for all requests.
average_processing_time: Duration
Average processing time for request.
last_error: Option<Error>
Last error that occurred.
data: Option<Value>
Custom data added by crate::service::Config::stats_handler
queue_group: String
Queue 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 Freeze for Stats
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