class Blocktrain::Aggregations::MinMaxAggregation

Public Instance Methods

local_aggregations() click to toggle source
# 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