pub enum GapPolicy {
Skip,
InsertZeros,
KeepValues,
}
Expand description
Gap policies are a mechanism to inform the pipeline aggregation about the desired behavior when
“gappy” or missing data is encountered. All pipeline aggregations accept the gap_policy
parameter.
Variants§
Skip
This option treats missing data as if the bucket does not exist. It will skip the bucket and continue calculating using the next available value.
InsertZeros
This option will replace missing values with a zero (0) and pipeline aggregation computation will proceed as normal.
KeepValues
This option is similar to skip, except if the metric provides a non-null, non-NaN value this value is used, otherwise the empty bucket is skipped.
Trait Implementations§
impl Copy for GapPolicy
impl Eq for GapPolicy
impl StructuralPartialEq for GapPolicy
Auto Trait Implementations§
impl Freeze for GapPolicy
impl RefUnwindSafe for GapPolicy
impl Send for GapPolicy
impl Sync for GapPolicy
impl Unpin for GapPolicy
impl UnwindSafe for GapPolicy
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