use of org.graylog.shaded.elasticsearch7.org.elasticsearch.search.aggregations.metrics.AvgAggregationBuilder in project graylog2-server by Graylog2.
the class ESAverageHandler method doCreateAggregation.
@Nonnull
@Override
public Optional<AggregationBuilder> doCreateAggregation(String name, Pivot pivot, Average avgSpec, ESPivot searchTypeHandler, ESGeneratedQueryContext queryContext) {
final AvgAggregationBuilder avg = AggregationBuilders.avg(name).field(avgSpec.field());
record(queryContext, pivot, avgSpec, name, Avg.class);
return Optional.of(avg);
}
Aggregations