pub enum Aggregation {
Show 17 variants
Terms {
name: String,
field: String,
size: u32,
sub_aggregations: Vec<Aggregation>,
},
Histogram {
name: String,
field: String,
interval: ApproximateNumber,
min_doc_count: U64,
extended_bounds: Option<HistogramBounds>,
hard_bounds: Option<HistogramBounds>,
offset: ApproximateNumber,
missing: Option<ApproximateNumber>,
sub_aggregations: Vec<Aggregation>,
},
Cardinality {
name: String,
field: String,
},
Percentiles {
name: String,
field: String,
percents: Vec<ApproximateNumber>,
},
ApproximateCardinality {
name: String,
field: String,
precision: u32,
},
ApproximatePercentiles {
name: String,
field: String,
percents: Vec<ApproximateNumber>,
precision: u32,
},
Sum {
name: String,
field: String,
},
Avg {
name: String,
field: String,
},
Min {
name: String,
field: String,
},
Max {
name: String,
field: String,
},
Stats {
name: String,
field: String,
},
DateHistogram {
name: String,
field: String,
fixed_interval_millis: Option<U64>,
calendar_interval: Option<String>,
time_zone: Option<String>,
min_doc_count: U64,
extended_bounds: Option<DateHistogramBounds>,
hard_bounds: Option<DateHistogramBounds>,
offset_millis: I64,
missing: Option<I64>,
sub_aggregations: Vec<Aggregation>,
},
Composite {
name: String,
size: u32,
sources: Vec<CompositeSource>,
after: Option<Cursor>,
sub_aggregations: Vec<Aggregation>,
},
Filter {
name: String,
query: Box<Query>,
sub_aggregations: Vec<Aggregation>,
},
Nested {
name: String,
path: String,
sub_aggregations: Vec<Aggregation>,
},
ReverseNested {
name: String,
path: Option<String>,
sub_aggregations: Vec<Aggregation>,
},
TimeSeriesV1 {Show 21 fields
name: String,
metric_name: String,
unit: String,
point_kind: MetricPointKind,
temporality: Option<MetricTemporality>,
monotonic: Option<bool>,
range_start_unix_nanos: U64,
range_end_unix_nanos: U64,
bucket_width_nanos: U64,
alignment_origin_unix_nanos: U64,
group_by: Vec<String>,
operator: TimeSeriesOperator,
missing_data: TimeSeriesMissingData,
quantiles: Vec<ApproximateNumber>,
quantile_mode: TimeSeriesQuantileMode,
maximum_exemplars: u32,
maximum_points: u32,
maximum_series: u32,
maximum_buckets: u32,
maximum_results: u32,
maximum_state_bytes: U64,
},
}Variants§
Terms
Histogram
Fields
§
interval: ApproximateNumber§
extended_bounds: Option<HistogramBounds>§
hard_bounds: Option<HistogramBounds>§
offset: ApproximateNumber§
missing: Option<ApproximateNumber>§
sub_aggregations: Vec<Aggregation>Cardinality
Percentiles
ApproximateCardinality
ApproximatePercentiles
Sum
Avg
Min
Max
Stats
DateHistogram
Fields
§
extended_bounds: Option<DateHistogramBounds>§
hard_bounds: Option<DateHistogramBounds>§
sub_aggregations: Vec<Aggregation>Composite
Filter
Nested
ReverseNested
TimeSeriesV1
Fields
§
point_kind: MetricPointKind§
temporality: Option<MetricTemporality>§
operator: TimeSeriesOperator§
missing_data: TimeSeriesMissingData§
quantiles: Vec<ApproximateNumber>§
quantile_mode: TimeSeriesQuantileModeTrait Implementations§
Source§impl Clone for Aggregation
impl Clone for Aggregation
Source§impl Debug for Aggregation
impl Debug for Aggregation
Source§impl<'de> Deserialize<'de> for Aggregation
impl<'de> Deserialize<'de> for Aggregation
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
Source§impl PartialEq for Aggregation
impl PartialEq for Aggregation
Source§impl Serialize for Aggregation
impl Serialize for Aggregation
impl StructuralPartialEq for Aggregation
Auto Trait Implementations§
impl Freeze for Aggregation
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnsafeUnpin for Aggregation
impl UnwindSafe for Aggregation
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