Class: Blocktrain::Aggregations::AverageAggregation

Inherits:
HistogramAggregation show all
Defined in:
lib/blocktrain/aggregations/average_aggregation.rb

Instance Method Summary collapse

Methods inherited from HistogramAggregation

#aggs

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_aggregationsObject



5
6
7
8
9
10
11
12
13
# File 'lib/blocktrain/aggregations/average_aggregation.rb', line 5

def local_aggregations
  {
    average_value: {
      avg: {
        field: 'value'
      }
    }
  }
end