Skip to content

Commit 008e38a

Browse files
committed
added examples
1 parent c151991 commit 008e38a

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

articles/event-grid/event-filtering.md

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,64 @@ The same key can be used in more than one filter.
164164
```json
165165
"advancedFilters": [{
166166
"operatorType": "StringContains",
167-
"key": "Subject",
167+
"key": "data.key1",
168168
"values": [
169-
"/providers/microsoft.devtestlab/"
169+
"microsoft",
170+
"azure"
171+
]
172+
}]
173+
```
174+
175+
### StringBeginsWith
176+
177+
```json
178+
"advancedFilters": [{
179+
"operatorType": "StringBeginsWith",
180+
"key": "data.key1",
181+
"values": [
182+
"event",
183+
"grid"
184+
]
185+
}]
186+
```
187+
188+
### StringEndsWith
189+
190+
```json
191+
"advancedFilters": [{
192+
"operatorType": "StringEndsWith",
193+
"key": "data.key1",
194+
"values": [
195+
"jpg",
196+
"jpeg",
197+
"png"
198+
]
199+
}]
200+
```
201+
202+
### StringIn
203+
204+
```json
205+
"advancedFilters": [{
206+
"operatorType": "StringIn",
207+
"key": "data.key1",
208+
"values": [
209+
"exact",
210+
"string",
211+
"matches"
212+
]
213+
}]
214+
```
215+
216+
### StringNotIn
217+
218+
```json
219+
"advancedFilters": [{
220+
"operatorType": "StringNotIn",
221+
"key": "data.key1",
222+
"values": [
223+
"aws",
224+
"bridge"
170225
]
171226
}]
172227
```

0 commit comments

Comments
 (0)