Struct rs_es::operations::search::aggregations::Percentiles [] [src]

pub struct Percentiles<'a> {
    // some fields omitted
}

Percentiles aggregation, see: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-aggregation.html

Examples

use rs_es::operations::search::aggregations::Percentiles;

let p1 = Percentiles::new("field_name").with_compression(100);
let p2 = Percentiles::new("field_name").with_percents(vec![10.0, 20.0]);

Methods

impl<'a> Percentiles<'a>

fn new<F: Into<FieldOrScript<'a>>>(fos: F) -> Percentiles<'a>

fn with_percents<T: Into<Vec<f64>>>(self, val: T) -> Self

fn with_compression<T: Into<u64>>(self, val: T) -> Self

Trait Implementations

impl<'a> ToJson for Percentiles<'a>

fn to_json(&self) -> Json

Derived Implementations

impl<'a> Debug for Percentiles<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result