Skip to content

Commit

Permalink
add coerce to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Simpson committed Feb 15, 2022
1 parent 3e824c3 commit 0a512df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions processor/attributesprocessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ For the `extract` action,

```


For the `coerce` action,
- `key` is required
- `action: coerce` is required.
- `target_type` is required and must be one of int, double or string
```yaml
# Key specifies the attribute to act upon.
- key: <key>
action: coerce
target_type: <type>
```
The list of actions can be composed to create rich scenarios, such as
back filling attribute, copying values to a new key, redacting sensitive information.
The following is a sample configuration.
Expand All @@ -110,6 +122,9 @@ processors:
action: delete
- key: account_email
action: hash
- key: http.status_code
action: coerce
target_type: int

```

Expand Down

0 comments on commit 0a512df

Please sign in to comment.