pub struct ActixWebMetricsConfig { /* private fields */ }
Expand description
Configuration for the collected metrics
Stores individual metric configuration objects
Implementations§
Source§impl ActixWebMetricsConfig
impl ActixWebMetricsConfig
Sourcepub fn labels(self, labels: LabelsConfig) -> Self
pub fn labels(self, labels: LabelsConfig) -> Self
Set the labels collected for the metrics
Sourcepub fn http_requests_total_name<T: Into<String>>(self, name: T) -> Self
pub fn http_requests_total_name<T: Into<String>>(self, name: T) -> Self
Set name for http_requests_total
metric
Sourcepub fn http_requests_duration_seconds_name<T: Into<String>>(
self,
name: T,
) -> Self
pub fn http_requests_duration_seconds_name<T: Into<String>>( self, name: T, ) -> Self
Set name for http_requests_duration_seconds
metric
Trait Implementations§
Source§impl Clone for ActixWebMetricsConfig
impl Clone for ActixWebMetricsConfig
Source§fn clone(&self) -> ActixWebMetricsConfig
fn clone(&self) -> ActixWebMetricsConfig
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 moreSource§impl Debug for ActixWebMetricsConfig
impl Debug for ActixWebMetricsConfig
Auto Trait Implementations§
impl Freeze for ActixWebMetricsConfig
impl RefUnwindSafe for ActixWebMetricsConfig
impl Send for ActixWebMetricsConfig
impl Sync for ActixWebMetricsConfig
impl Unpin for ActixWebMetricsConfig
impl UnwindSafe for ActixWebMetricsConfig
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