Class: OpenSearch::DSL::Search::Aggregations::Avg

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/opensearch/dsl/search/aggregations/avg.rb

Overview

A single-value metric aggregation which returns the average of numeric values

Examples:


search do
  aggregation :avg_clicks do
    avg field: 'clicks'
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize