class Blocktrain::Aggregations::HistogramAggregation

Public Instance Methods

aggs() click to toggle source
# File lib/blocktrain/aggregations/histogram_aggregation.rb, line 5
def aggs
  {
    results: {
      date_histogram: {
        field: 'timeStamp',
        interval: @interval,
        time_zone: '+01:00',
        min_doc_count: 1,
        extended_bounds: {
          min: @from,
          max: @to
        }
      },
      aggregations: local_aggregations
    }
  }
end