Struct fibers_http_server::metrics::HandlerMetrics
[−]
[src]
pub struct HandlerMetrics { /* fields omitted */ }
HTTP handler metrics.
Methods
impl HandlerMetrics
[src]
pub fn requests(&self, status_code: u16) -> Option<u64>
[src]
Number of requests that the handler handled.
Metric: fibers_http_server_handler_requests_total { status = "..." } <COUNTER>
pub fn request_duration_seconds_buckets(&self) -> &[Bucket]
[src]
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
impl Debug for HandlerMetrics
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for HandlerMetrics
[src]
fn clone(&self) -> HandlerMetrics
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more