@@ -83,15 +83,13 @@ class GenericMatcher(Matcher[_T]):
83
83
for inclusion in the integration JSON object and matching rule.
84
84
"""
85
85
86
- def __init__ ( # noqa: PLR0913
86
+ def __init__ (
87
87
self ,
88
88
type : MatcherType , # noqa: A002
89
89
/ ,
90
90
value : _T | Unset = UNSET ,
91
91
generator : Generator | None = None ,
92
92
extra_fields : Mapping [str , Any ] | None = None ,
93
- integration_fields : Mapping [str , Any ] | None = None ,
94
- matching_rule_fields : Mapping [str , Any ] | None = None ,
95
93
** kwargs : Matchable ,
96
94
) -> None :
97
95
"""
@@ -116,14 +114,6 @@ def __init__( # noqa: PLR0913
116
114
fields will be used when converting the matcher to both an
117
115
integration JSON object and a matching rule.
118
116
119
- integration_fields:
120
- Additional configuration elements to pass to the matcher when
121
- converting it to an integration JSON object.
122
-
123
- matching_rule_fields:
124
- Additional configuration elements to pass to the matcher when
125
- converting it to a matching rule.
126
-
127
117
**kwargs:
128
118
Alternative way to define extra fields. See the `extra_fields`
129
119
argument for more information.
@@ -143,8 +133,6 @@ def __init__( # noqa: PLR0913
143
133
Generator used to generate a value when the value is not provided.
144
134
"""
145
135
146
- self ._integration_fields : Mapping [str , Any ] = integration_fields or {}
147
- self ._matching_rule_fields : Mapping [str , Any ] = matching_rule_fields or {}
148
136
self ._extra_fields : Mapping [str , Any ] = dict (
149
137
chain ((extra_fields or {}).items (), kwargs .items ())
150
138
)
@@ -179,7 +167,6 @@ def to_integration_json(self) -> dict[str, Any]:
179
167
else {}
180
168
),
181
169
** self ._extra_fields ,
182
- ** self ._integration_fields ,
183
170
}
184
171
185
172
def to_matching_rule (self ) -> dict [str , Any ]:
@@ -205,7 +192,6 @@ def to_matching_rule(self) -> dict[str, Any]:
205
192
"match" : self .type ,
206
193
** ({"value" : self .value } if not isinstance (self .value , Unset ) else {}),
207
194
** self ._extra_fields ,
208
- ** self ._matching_rule_fields ,
209
195
}
210
196
211
197
0 commit comments