Class: Elasticsearch::DSL::Search::Aggregations::Derivative

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/elasticsearch/dsl/search/aggregations/pipeline/derivative.rb

Overview

A parent pipeline aggregation which calculates the derivative of a specified metric in a parent histogram (or date_histogram) aggregation.

Examples:

Passing the options as a Hash


aggregation :sales_deriv do
  derivative buckets_path: 'sales'
end

Passing the options as a block


aggregation :sales_deriv do
  derivative do
    buckets_path 'sales'
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included