class Elasticsearch::DSL::Search::Aggregations::SerialDiff

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

@example Passing the options as a Hash

aggregation :thirtieth_difference do
  serial_diff buckets_path: 'the_sum'
end

@example Passing the options as a block

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

@see www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html