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