Skip to content

Commit

Permalink
Update movfn-aggregation.asciidoc (elastic#101959)
Browse files Browse the repository at this point in the history
Updated one-day to one-month interval to match the code
  • Loading branch information
2gavy authored Nov 9, 2023
1 parent 58b27cc commit 9fdc67c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ POST /_search
--------------------------------------------------
// TEST[setup:sales]

<1> A `date_histogram` named "my_date_histo" is constructed on the "timestamp" field, with one-day intervals
<1> A `date_histogram` named "my_date_histo" is constructed on the "timestamp" field, with one-month intervals
<2> A `sum` metric is used to calculate the sum of a field. This could be any numeric metric (sum, min, max, etc)
<3> Finally, we specify a `moving_fn` aggregation which uses "the_sum" metric as its input.

Expand Down

0 comments on commit 9fdc67c

Please sign in to comment.