Class: Elasticsearch::DSL::Search::Aggregations::PercentilesBucket

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/elasticsearch/dsl/search/aggregations/pipeline/percentiles_bucket.rb

Overview

A sibling pipeline aggregation which calculates percentiles across all bucket of a specified metric in a sibling aggregation.

Examples:

Passing the options as a Hash


aggregation :sum_monthly_sales do
  percentiles_bucket buckets_path: 'sales_per_month>sales'
end

Passing the options as a block


aggregation :sum_monthly_sales do
  percentiles_bucket do
    buckets_path 'sales_per_month>sales'
    percents [25.0 50.0 75.0]
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included