<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Serial_diff on INFINI Pizza</title><link>https://pizza.rs/tags/serial_diff/</link><description>Recent content in Serial_diff on INFINI Pizza</description><generator>Hugo</generator><language>en</language><atom:link href="https://pizza.rs/tags/serial_diff/index.xml" rel="self" type="application/rss+xml"/><item><title>Serial diff aggregation</title><link>https://pizza.rs/docs/references/aggregation/pipeline/serial-diff/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://pizza.rs/docs/references/aggregation/pipeline/serial-diff/</guid><description>&lt;h1 id="serial-diff-aggregation">
 Serial diff aggregation
 &lt;a class="anchor" href="#serial-diff-aggregation">#&lt;/a>
&lt;/h1>
&lt;p>A parent pipeline aggregation computing the difference between each
bucket&amp;rsquo;s metric and the bucket &lt;code>lag&lt;/code> positions back — a differencing
transform that turns a trending or seasonal series into its own
period-over-period change.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-json" data-lang="json">&lt;span class="line">&lt;span class="cl">&lt;span class="s2">&amp;#34;wowl&amp;#34;&lt;/span>&lt;span class="err">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;serial_diff&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">{&lt;/span> &lt;span class="nt">&amp;#34;buckets_path&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="s2">&amp;#34;revenue&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nt">&amp;#34;lag&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="mi">2&lt;/span> &lt;span class="p">}&lt;/span> &lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="how-it-works">
 How it works
 &lt;a class="anchor" href="#how-it-works">#&lt;/a>
&lt;/h2>
&lt;p>&lt;code>serial_diff&lt;/code> is declared &lt;strong>inside&lt;/strong> the multi-bucket aggregation it
decorates, next to the metric it consumes. After the buckets are
built, the engine walks them in order and attaches
&lt;code>current − value_lag_buckets_back&lt;/code> to each bucket under the
pipeline&amp;rsquo;s own name:&lt;/p></description></item></channel></rss>