pub enum DogStatsDAction<'a, T: AsRef<str>, V: IntoIterator<Item = &'a Tag>> {
Count(T, i64, V),
Distribution(T, f64, V),
Gauge(T, f64, V),
Histogram(T, f64, V),
Set(T, i64, V),
}Expand description
The DogStatsDAction enum gathers the metric types that can be sent to the DogStatsD server.
Variants§
Count(T, i64, V)
Distribution(T, f64, V)
Gauge(T, f64, V)
Histogram(T, f64, V)
Set(T, i64, V)
Cadence only support i64 type as value but Golang implementation uses string (https://github.com/DataDog/datadog-go/blob/331d24832f7eac97b091efd696278fe2c4192b29/statsd/statsd.go#L230) and PHP implementation uses float or string (https://github.com/DataDog/php-datadogstatsd/blob/0efdd1c38f6d3dd407efbb899ad1fd2e5cd18085/src/DogStatsd.php#L251)
Trait Implementations§
Source§impl<'a, T: Debug + AsRef<str>, V: Debug + IntoIterator<Item = &'a Tag>> Debug for DogStatsDAction<'a, T, V>
impl<'a, T: Debug + AsRef<str>, V: Debug + IntoIterator<Item = &'a Tag>> Debug for DogStatsDAction<'a, T, V>
Source§impl<'de, 'a, T, V> Deserialize<'de> for DogStatsDAction<'a, T, V>
impl<'de, 'a, T, V> Deserialize<'de> for DogStatsDAction<'a, T, V>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, T, V> Serialize for DogStatsDAction<'a, T, V>
impl<'a, T, V> Serialize for DogStatsDAction<'a, T, V>
Auto Trait Implementations§
impl<'a, T, V> Freeze for DogStatsDAction<'a, T, V>
impl<'a, T, V> RefUnwindSafe for DogStatsDAction<'a, T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, T, V> Send for DogStatsDAction<'a, T, V>
impl<'a, T, V> Sync for DogStatsDAction<'a, T, V>
impl<'a, T, V> Unpin for DogStatsDAction<'a, T, V>
impl<'a, T, V> UnsafeUnpin for DogStatsDAction<'a, T, V>where
T: UnsafeUnpin,
V: UnsafeUnpin,
impl<'a, T, V> UnwindSafe for DogStatsDAction<'a, T, V>where
T: UnwindSafe,
V: UnwindSafe,
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