You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/api/transform_filter.go
+2-21Lines changed: 2 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ const (
37
37
RemoveEntryIfEqualTransformFilterEnum="remove_entry_if_equal"// removes the entry if the field value equals specified value
38
38
RemoveEntryIfNotEqualTransformFilterEnum="remove_entry_if_not_equal"// removes the entry if the field value does not equal specified value
39
39
RemoveEntryAllSatisfiedTransformFilterEnum="remove_entry_all_satisfied"// removes the entry if all of the defined rules are satisfied
40
-
KeepEntryAllSatisfiedTransformFilterEnum="keep_entry_all_satisfied"// keeps the entry if the set of rules are all satisfied
40
+
KeepEntryQueryTransformFilterEnum="keep_entry_query"// keeps the entry if it matches the query
41
41
AddFieldTransformFilterEnum="add_field"// adds (input) field to the entry; overrides previous value if present (key=input, value=value)
42
42
AddFieldIfDoesntExistTransformFilterEnum="add_field_if_doesnt_exist"// adds a field to the entry if the field does not exist
43
43
AddFieldIfTransformFilterEnum="add_field_if"// add output field set to assignee if input field satisfies criteria from parameters field
@@ -56,23 +56,12 @@ const (
56
56
RemoveEntryIfNotEqualDTransformFilterRemoveEntryEnum="remove_entry_if_not_equal"// removes the entry if the field value does not equal specified value
57
57
)
58
58
59
-
typeTransformFilterKeepEntryEnumstring
60
-
61
-
const (
62
-
KeepEntryIfExistsTransformFilterKeepEntryEnum="keep_entry_if_exists"// keeps the entry if the field exists
63
-
KeepEntryIfDoesntExistTransformFilterKeepEntryEnum="keep_entry_if_doesnt_exist"// keeps the entry if the field does not exist
64
-
KeepEntryIfEqualTransformFilterKeepEntryEnum="keep_entry_if_equal"// keeps the entry if the field value equals specified value
65
-
KeepEntryIfNotEqualTransformFilterKeepEntryEnum="keep_entry_if_not_equal"// keeps the entry if the field value does not equal specified value
66
-
KeepEntryIfRegexMatchTransformFilterKeepEntryEnum="keep_entry_if_regex_match"// keeps the entry if the field value matches the specified regex
67
-
KeepEntryIfNotRegexMatchTransformFilterKeepEntryEnum="keep_entry_if_not_regex_match"// keeps the entry if the field value does not match the specified regex
68
-
)
69
-
70
59
typeTransformFilterRulestruct {
71
60
TypeTransformFilterEnum`yaml:"type,omitempty" json:"type,omitempty" doc:"(enum) one of the following:"`
72
61
RemoveField*TransformFilterGenericRule`yaml:"removeField,omitempty" json:"removeField,omitempty" doc:"configuration for remove_field rule"`
73
62
RemoveEntry*TransformFilterGenericRule`yaml:"removeEntry,omitempty" json:"removeEntry,omitempty" doc:"configuration for remove_entry_* rules"`
74
63
RemoveEntryAllSatisfied []*RemoveEntryRule`yaml:"removeEntryAllSatisfied,omitempty" json:"removeEntryAllSatisfied,omitempty" doc:"configuration for remove_entry_all_satisfied rule"`
75
-
KeepEntryAllSatisfied[]*KeepEntryRule`yaml:"keepEntryAllSatisfied,omitempty" json:"keepEntryAllSatisfied,omitempty" doc:"configuration for keep_entry rule"`
64
+
KeepEntryQuerystring`yaml:"keepEntryQuery,omitempty" json:"keepEntryQuery,omitempty" doc:"configuration for keep_entry rule"`
76
65
KeepEntrySamplinguint16`yaml:"keepEntrySampling,omitempty" json:"keepEntrySampling,omitempty" doc:"sampling value for keep_entry type: 1 flow on <sampling> is kept"`
77
66
AddField*TransformFilterGenericRule`yaml:"addField,omitempty" json:"addField,omitempty" doc:"configuration for add_field rule"`
78
67
AddFieldIfDoesntExist*TransformFilterGenericRule`yaml:"addFieldIfDoesntExist,omitempty" json:"addFieldIfDoesntExist,omitempty" doc:"configuration for add_field_if_doesnt_exist rule"`
0 commit comments