Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Melissa Vagi <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
  • Loading branch information
Naarcha-AWS and vagimeli authored Dec 3, 2024
1 parent abebfd2 commit d1a346b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions _data-prepper/pipelines/expression-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
<Any> + <Any>
Expand All @@ -104,7 +104,7 @@ Arithmetic expressions allow you to do few basic arithmetic operations. Arithmet
<Any> / <Any>
```

The following are some example arithmetic expressions:
The following are example arithmetic expressions:

```
/value + length(/message)
Expand All @@ -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:

```
<String Variable or String Literal> + <String Variable or String Literal>
```

The following are some example string concatenation expressions:
The following are example string concatenation expressions:

```
/name + "suffix"
Expand All @@ -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
Expand All @@ -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 `${<text>}`.
Certain symbols, such as ^, %, xor, =, +=, -=, *=, /=, %=, ++, --, and ${<text>}, are reserved for future functionality or extensions. Reserved symbols include `^`, `%`, `xor`, `=`, `+=`, `-=`, `*=`, `/=`, `%=`, `++`, `--`, and `${<text>}`.

## Syntax components

Expand Down

0 comments on commit d1a346b

Please sign in to comment.