Skip to content

Commit

Permalink
Update docs to standardize examples (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrod1598 authored Apr 27, 2021
1 parent d73dd05 commit 0a6d699
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/operators/add.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `add` operator adds a value to an `entry`'s `body`, `attributes`, or `resour
| `if` | | An [expression](/docs/types/expression.md) that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |


Example usage:
### Example Configurations:

<hr>
Add a string to the body
Expand Down
2 changes: 1 addition & 1 deletion docs/operators/copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `copy` operator copies a value from one [field](/docs/types/field.md) to ano
| `on_error` | `send` | The behavior of the operator if it encounters an error. See [on_error](/docs/types/on_error.md) |
| `if` | | An [expression](/docs/types/expression.md) that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |

Example usage:
### Example Configurations:

<hr>
Copy a value from the body to resource
Expand Down
2 changes: 1 addition & 1 deletion docs/operators/flatten.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The operator only flattens a single level deep.
| `on_error` | `send` | The behavior of the operator if it encounters an error. See [on_error](/docs/types/on_error.md) |
| `if` | | An [expression](/docs/types/expression.md) that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |

Example usage:
### Example Configurations:

<hr>
Flatten an object to the base of the body
Expand Down
2 changes: 1 addition & 1 deletion docs/operators/move.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `move` operator moves (or renames) a field from one location to another.
| `on_error` | `send` | The behavior of the operator if it encounters an error. See [on_error](/docs/types/on_error.md) |
| `if` | | An [expression](/docs/types/expression.md) that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |

Example usage:
### Example Configurations:

Rename value
```yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/operators/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The `remove` operator removes a field from a record.
| `on_error` | `send` | The behavior of the operator if it encounters an error. See [on_error](/docs/types/on_error.md) |
| `if` | | An [expression](/docs/types/expression.md) that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |

Example usage:
### Example Configurations:

<hr>

Expand Down
4 changes: 3 additions & 1 deletion docs/operators/retain.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ The `retain` operator keeps the specified list of fields, and removes the rest.
<hr>
<b>NOTE:</b> If no fields in a group (attributes, resource, or body) are specified, that entire group will be retained.
<hr>
Example usage:

### Example Configurations:

<hr>
Retain fields in the body

Expand Down

0 comments on commit 0a6d699

Please sign in to comment.