Class: Elasticsearch::DSL::Search::Aggregations::SerialDiff

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

Overview

Serial differencing is a technique where values in a time series are subtracted from itself at different time lags or periods.

Examples:

Passing the options as a Hash


aggregation :thirtieth_difference do
  serial_diff buckets_path: 'the_sum'
end

Passing the options as a block


aggregation :thirtieth_difference do
  serial_diff do
    buckets_path 'the_sum'
    lag 30
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included