Skip to content

Commit

Permalink
initial support for labels (#447)
Browse files Browse the repository at this point in the history
* added support for labels to transform-filter

* make use of parameters more consistent
  • Loading branch information
KalmanMeth committed Sep 13, 2023
1 parent 058bc4e commit f2f3346
Show file tree
Hide file tree
Showing 5 changed files with 370 additions and 8 deletions.
3 changes: 3 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ Following is the supported API format for filter transformations:
remove_entry_if_doesnt_exist: removes the entry if the field does not exist
remove_entry_if_equal: removes the entry if the field value equals specified value
remove_entry_if_not_equal: removes the entry if the field value does not equal specified value
add_field: adds (input) field to the entry; overrides previous value if present (key=input, value=value)
add_field_if_doesnt_exist: adds a field to the entry if the field does not exist
add_field_if: add output field set to assignee if input field satisfies criteria from parameters field
add_regex_if: add output field if input field satisfies regex pattern from parameters field
add_label: add (input) field to list of labels with value taken from Value field (key=input, value=value)
add_label_if: add output field to list of labels with value taken from assignee field if input field satisfies criteria from parameters field
value: specified value of input field:
parameters: parameters specific to type
assignee: value needs to assign to output field
Expand Down
Loading

0 comments on commit f2f3346

Please sign in to comment.