Class: Blocktrain::Aggregations::MinMaxAggregation
- Inherits:
-
HistogramAggregation
- Object
- Query
- Blocktrain::Aggregation
- HistogramAggregation
- Blocktrain::Aggregations::MinMaxAggregation
- Defined in:
- lib/blocktrain/aggregations/min_max_aggregation.rb
Instance Method Summary collapse
Methods inherited from HistogramAggregation
Methods inherited from Blocktrain::Aggregation
#aggs, #body, #initialize, #results
Methods inherited from Query
#address_query, #body, #build_query, #filtered_filter, #filtered_query, #hits, #initialize, #parse_datetime, #query, #results
Constructor Details
This class inherits a constructor from Blocktrain::Aggregation
Instance Method Details
#local_aggregations ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/blocktrain/aggregations/min_max_aggregation.rb', line 5 def local_aggregations { value: { terms: { field: 'memoryAddress' }, aggregations: { average_value: { avg: { field: 'value' } }, max_value: { max: { field: 'value' } }, min_value: { min: { field: 'value' } } } } } end |