Skip to content

Commit

Permalink
[DOCS] Fix typo in gap_policy's default value for serial differencing…
Browse files Browse the repository at this point in the history
… aggregation (#80893) (#80912)

Co-authored-by: James Rodewig <[email protected]>

Co-authored-by: Simon Stücher <[email protected]>
  • Loading branch information
jrodewig and stchr authored Nov 22, 2021
1 parent f3a69ae commit cf30b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ A `serial_diff` aggregation looks like this in isolation:
|`buckets_path` |Path to the metric of interest (see <<buckets-path-syntax, `buckets_path` Syntax>> for more details |Required |
|`lag` |The historical bucket to subtract from the current value. E.g. a lag of 7 will subtract the current value from
the value 7 buckets ago. Must be a positive, non-zero integer |Optional |`1`
|`gap_policy` |Determines what should happen when a gap in the data is encountered. |Optional |`insert_zero`
|`gap_policy` |Determines what should happen when a gap in the data is encountered. |Optional |`insert_zeros`
|`format` |Format to apply to the output value of this aggregation |Optional | `null`
|===

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static InvalidAggregationPathException invalidPathException(List<String>
/**
* This extracts the bucket values as doubles from the passed aggregations.
*
* The gap policy is always `INSERT_ZERO`
* The gap policy is always `INSERT_ZEROS`
* @param bucketPath The bucket path from which to extract values
* @param aggregations The aggregations
* @return The double values and doc_counts extracted from the path if the bucket path exists and the value is a valid number
Expand Down

0 comments on commit cf30b54

Please sign in to comment.