pub enum Aggregate {
Map(Mapping),
Align(Align),
GroupBy(GroupBy),
Bucket(BucketBy),
As(As),
}Expand description
Possible aggregate functions
Variants§
Map(Mapping)
Map a function over each value
Align(Align)
Align the data to a time interval
GroupBy(GroupBy)
Group the data by tags
Bucket(BucketBy)
Bucket the data by time and tags
As(As)
Rename the metric
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Aggregate
impl<'de> Deserialize<'de> for Aggregate
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 Aggregate
impl !RefUnwindSafe for Aggregate
impl Send for Aggregate
impl Sync for Aggregate
impl Unpin for Aggregate
impl UnsafeUnpin for Aggregate
impl !UnwindSafe for Aggregate
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