pub struct HandlerMetrics { /* private fields */ }Expand description
HTTP handler metrics.
Implementations§
Source§impl HandlerMetrics
impl HandlerMetrics
Sourcepub fn requests(&self, status_code: u16) -> Option<u64>
pub fn requests(&self, status_code: u16) -> Option<u64>
Number of requests that the handler handled.
Metric: fibers_http_server_handler_requests_total { status = "..." } <COUNTER>
Sourcepub fn request_duration_seconds_buckets(&self) -> &[Bucket]
pub fn request_duration_seconds_buckets(&self) -> &[Bucket]
Histogram bucket of requests processing duration.
It does not contains the time elapsed for reading/writing requests/responses.
Metric: fibers_http_server_handler_request_duration_seconds_bucket { le="...", method="...", path="..." } <COUNTER>
Trait Implementations§
Source§impl Clone for HandlerMetrics
impl Clone for HandlerMetrics
Source§fn clone(&self) -> HandlerMetrics
fn clone(&self) -> HandlerMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HandlerMetrics
impl RefUnwindSafe for HandlerMetrics
impl Send for HandlerMetrics
impl Sync for HandlerMetrics
impl Unpin for HandlerMetrics
impl UnwindSafe for HandlerMetrics
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