[−][src]Struct tempest::metric::Metrics
Fields
names: Vec<String>
Names parts joined together with backend delimiters
labels: Option<Vec<(String, String)>>
Labels
bucket: Bucket
Storage for our metric instances
Methods
impl Metrics
[src]
pub fn new(names: Vec<&str>) -> Self
[src]
pub fn named(&mut self, names: Vec<&str>) -> Self
[src]
pub fn labels(&mut self, labels: Vec<(&str, &str)>) -> Self
[src]
pub fn add_label(&mut self, key: &str, value: &str)
[src]
pub fn flush(&mut self)
[src]
pub fn counter(&mut self, names: Vec<&str>, value: isize)
[src]
pub fn incr(&mut self, names: Vec<&str>)
[src]
pub fn decr(&mut self, names: Vec<&str>)
[src]
pub fn gauge(&mut self, names: Vec<&str>, value: isize)
[src]
pub fn counter_labels(
&mut self,
names: Vec<&str>,
value: isize,
labels: Vec<(&str, &str)>
)
[src]
&mut self,
names: Vec<&str>,
value: isize,
labels: Vec<(&str, &str)>
)
pub fn incr_labels(&mut self, names: Vec<&str>, labels: Vec<(&str, &str)>)
[src]
pub fn decr_labels(&mut self, names: Vec<&str>, labels: Vec<(&str, &str)>)
[src]
pub fn gauge_labels(
&mut self,
names: Vec<&str>,
value: isize,
labels: Vec<(&str, &str)>
)
[src]
&mut self,
names: Vec<&str>,
value: isize,
labels: Vec<(&str, &str)>
)
pub fn timer(&mut self) -> SimpleTimer
[src]
pub fn time(&mut self, names: Vec<&str>, timer: SimpleTimer)
[src]
pub fn time_labels(
&mut self,
names: Vec<&str>,
timer: SimpleTimer,
labels: Vec<(&str, &str)>
)
[src]
&mut self,
names: Vec<&str>,
timer: SimpleTimer,
labels: Vec<(&str, &str)>
)
Trait Implementations
Auto Trait Implementations
impl Send for Metrics
impl Unpin for Metrics
impl Sync for Metrics
impl UnwindSafe for Metrics
impl RefUnwindSafe for Metrics
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,