Struct rs_es::operations::search::aggregations::metrics::Percentiles
[−]
[src]
pub struct Percentiles<'a>(_);
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::metrics::Percentiles; let p1 = Percentiles::field("field_name").with_compression(100u64); let p2 = Percentiles::field("field_name").with_percents(vec![10.0, 20.0]);
Methods
impl<'a> Percentiles<'a>
[src]
fn field(field: &'a str) -> Self
fn script<S: Into<Script<'a>>>(script: S) -> Self
fn with_script<S: Into<Script<'a>>>(self, script: S) -> Self
fn with_missing<J: Into<JsonVal>>(self, missing: J) -> Self
impl<'a> Percentiles<'a>
[src]
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> Debug for Percentiles<'a>
[src]
impl<'a> Serialize for Percentiles<'a>
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.