pub enum StoredMetric {
Counter {
name: String,
value: i64,
},
Gauge {
name: String,
value: f64,
},
Histogram {
name: String,
total: u64,
},
Log {
name: String,
total: u64,
},
}Expand description
The aggregated metric as stored in the canister, keyed by key.
Variants§
Trait Implementations§
Source§impl CandidType for StoredMetric
impl CandidType for StoredMetric
Source§impl Clone for StoredMetric
impl Clone for StoredMetric
Source§fn clone(&self) -> StoredMetric
fn clone(&self) -> StoredMetric
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StoredMetric
impl Debug for StoredMetric
Source§impl<'de> Deserialize<'de> for StoredMetric
impl<'de> Deserialize<'de> for StoredMetric
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
Auto Trait Implementations§
impl Freeze for StoredMetric
impl RefUnwindSafe for StoredMetric
impl Send for StoredMetric
impl Sync for StoredMetric
impl Unpin for StoredMetric
impl UnsafeUnpin for StoredMetric
impl UnwindSafe for StoredMetric
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