From d1a346be866ed49789e8e2cb4e7b327f67f03037 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:00:15 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Melissa Vagi Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- .../configuration/processors/anomaly-detector.md | 2 +- _data-prepper/pipelines/expression-syntax.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_data-prepper/pipelines/configuration/processors/anomaly-detector.md b/_data-prepper/pipelines/configuration/processors/anomaly-detector.md index 333245f0e3..ba574bdf7d 100644 --- a/_data-prepper/pipelines/configuration/processors/anomaly-detector.md +++ b/_data-prepper/pipelines/configuration/processors/anomaly-detector.md @@ -53,7 +53,7 @@ You can configure `random_cut_forest` mode with the following options. | `sample_size` | `256` | 100--2500 | The sample size used in the ML algorithm. | | `time_decay` | `0.1` | 0--1.0 | The time decay value used in the ML algorithm. Used as the mathematical expression `timeDecay` divided by `SampleSize` in the ML algorithm. | | `type` | `metrics` | N/A | The type of data sent to the algorithm. | -| `output_after` | 32 | N/A | Indicates the number of events to consume before outputting anamolies | +| `output_after` | 32 | N/A | Specifies the number of events to process before outputting any detected anomalies. | | `version` | `1.0` | N/A | The algorithm version number. | ## Usage diff --git a/_data-prepper/pipelines/expression-syntax.md b/_data-prepper/pipelines/expression-syntax.md index 266e96b02b..07f68ee58e 100644 --- a/_data-prepper/pipelines/expression-syntax.md +++ b/_data-prepper/pipelines/expression-syntax.md @@ -95,7 +95,7 @@ not /status_code in {200, 202} ### Arithmetic expressions -Arithmetic expressions allow you to do few basic arithmetic operations. Arithmetic expressions may be combined with conditional expressions to make more complex conditional expressions. The available arithmetic operators are `+`, `-`, `*`, and `/` for doing addition, subtraction, multiplication and division respectively. The syntax for using the arithmetic operators is as follows: +Arithmetic expressions enable basic mathematical operations like addition, subtraction, multiplication, and division. These expressions can be combined with conditional expressions to create more complex conditional statements. The available arithmetic operators are +, -, *, and /. The syntax for using the arithmetic operators is as follows: ``` + @@ -104,7 +104,7 @@ Arithmetic expressions allow you to do few basic arithmetic operations. Arithmet / ``` -The following are some example arithmetic expressions: +The following are example arithmetic expressions: ``` /value + length(/message) @@ -125,13 +125,13 @@ The following are some example arithmetic expressions used in conditional expres ### String concatenation expressions -String concatenation expressions allow you to concatenate strings to generate new strings. The concatenated strings can be used in conditional expressions too. The syntax for using string concatenation is as follows: +String concatenation expressions enable you to combine strings to create new strings. These concatenated strings can also be used within conditional expressions. The syntax for using string concatenation is as follows: ``` + ``` -The following are some example string concatenation expressions: +The following are example string concatenation expressions: ``` /name + "suffix" @@ -140,7 +140,7 @@ The following are some example string concatenation expressions: ``` {% include copy-curl.html %} -The following are some example string concatenation expressions used in conditional expressions : +The following are example string concatenation expressions that can be used in conditional expressions: ``` /service + ".com" == /url @@ -150,7 +150,7 @@ The following are some example string concatenation expressions used in conditio ### Reserved symbols -Reserved symbols are symbols that are not currently used in the expression syntax but are reserved for possible future functionality or extensions. Reserved symbols include `^`, `%`, `xor`, `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `++`, `--`, and `${}`. +Certain symbols, such as ^, %, xor, =, +=, -=, *=, /=, %=, ++, --, and ${}, are reserved for future functionality or extensions. Reserved symbols include `^`, `%`, `xor`, `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `++`, `--`, and `${}`. ## Syntax components