pub struct MovingFunctionAggregate {
pub buckets_path: String,
pub window: u32,
pub function: MovingFunction,
}Expand description
Given an ordered series of data, the Moving Function aggregation will slide a window across the data and allow the user to specify a function that is executed on each window of data. A number of common functions are predefined such as min/max, moving averages, etc. Customer defined functions are not allowed now. The aggregate must be embedded inside of a numberHistogram or timeHistogram aggregate. It can be embedded like any other metric aggregate.
Fields§
§buckets_path: StringThe path to the buckets to use for the moving function.
Syntax is [AggregateName][MultiBucketKey]?(>[AggregateName])*.
See documentation for more details.
window: u32The size of window to slide accross the histogram.
function: MovingFunctionThe function that should be executed on each window of data.
Trait Implementations§
Source§impl Clone for MovingFunctionAggregate
impl Clone for MovingFunctionAggregate
Source§fn clone(&self) -> MovingFunctionAggregate
fn clone(&self) -> MovingFunctionAggregate
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 MovingFunctionAggregate
impl Debug for MovingFunctionAggregate
Source§impl<'de> Deserialize<'de> for MovingFunctionAggregate
impl<'de> Deserialize<'de> for MovingFunctionAggregate
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 MovingFunctionAggregate
impl RefUnwindSafe for MovingFunctionAggregate
impl Send for MovingFunctionAggregate
impl Sync for MovingFunctionAggregate
impl Unpin for MovingFunctionAggregate
impl UnwindSafe for MovingFunctionAggregate
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