Skip to content

Commit 861c447

Browse files
committed
[DOCS] Fix Moving Avg Aggregation deprecated macro for Asciidoctor (#42405)
1 parent 1abe9d1 commit 861c447

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/reference/aggregations/pipeline/movavg-aggregation.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
[[search-aggregations-pipeline-movavg-aggregation]]
22
=== Moving Average Aggregation
33

4+
ifdef::asciidoctor[]
5+
deprecated:[6.4.0, "The Moving Average aggregation has been deprecated in favor of the more general <<search-aggregations-pipeline-movfn-aggregation,Moving Function Aggregation>>. The new Moving Function aggregation provides all the same functionality as the Moving Average aggregation, but also provides more flexibility."]
6+
endif::[]
7+
ifndef::asciidoctor[]
48
deprecated[6.4.0, The Moving Average aggregation has been deprecated in favor of the more general
59
<<search-aggregations-pipeline-movfn-aggregation,Moving Function Aggregation>>. The new Moving Function aggregation provides
610
all the same functionality as the Moving Average aggregation, but also provides more flexibility.]
11+
endif::[]
712

813
Given an ordered series of data, the Moving Average aggregation will slide a window across the data and emit the average
914
value of that window. For example, given the data `[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`, we can calculate a simple moving

0 commit comments

Comments
 (0)