pub enum BucketsPath {
Single(String),
Multi(BTreeMap<String, String>),
}
Expand description
Specifies the path to the buckets to filter in a bucket selector aggregation.
This can either be a single path, referencing a single metric, or multiple paths in case of more complex aggregations.
Variants§
Single(String)
A single path referencing a metric.
Multi(BTreeMap<String, String>)
Multiple paths in the form of key-value pairs. Each key corresponds to an alias, and each value is a path to the metric.
Trait Implementations§
Source§impl Clone for BucketsPath
impl Clone for BucketsPath
Source§fn clone(&self) -> BucketsPath
fn clone(&self) -> BucketsPath
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 BucketsPath
impl Debug for BucketsPath
Source§impl From<&str> for BucketsPath
impl From<&str> for BucketsPath
Source§impl From<String> for BucketsPath
impl From<String> for BucketsPath
Source§impl PartialEq for BucketsPath
impl PartialEq for BucketsPath
Source§impl Serialize for BucketsPath
impl Serialize for BucketsPath
impl StructuralPartialEq for BucketsPath
Auto Trait Implementations§
impl Freeze for BucketsPath
impl RefUnwindSafe for BucketsPath
impl Send for BucketsPath
impl Sync for BucketsPath
impl Unpin for BucketsPath
impl UnwindSafe for BucketsPath
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