|
179 | 179 | </select> |
180 | 180 | </div> |
181 | 181 | </div> |
182 | | - <div class="form-row mt-3"> |
183 | | - <div class="col-md-12"> |
184 | | - <button class="btn btn-sm btn-outline-dark" type="button" data-toggle="collapse" data-target="#customConditionsCollapse" aria-expanded="false" aria-controls="customConditionsCollapse"> |
185 | | - Custom Conditions |
186 | | - </button> |
187 | | - </div> |
| 182 | + <div class="form-row mt-3"> |
| 183 | + <div class="col-md-12"> |
| 184 | + <button class="btn btn-sm btn-outline-dark" type="button" data-toggle="collapse" data-target="#customConditionsCollapse" aria-expanded="false" aria-controls="customConditionsCollapse"> |
| 185 | + Custom Conditions |
| 186 | + </button> |
| 187 | + <a href="#" class="ml-2" data-toggle="collapse" data-target="#customConditionsExamples" aria-expanded="false" aria-controls="customConditionsExamples"> |
| 188 | + Show Examples |
| 189 | + </a> |
188 | 190 | </div> |
| 191 | + </div> |
189 | 192 |
|
190 | | - <div class="collapse mt-3" id="customConditionsCollapse"> |
191 | | - <div class="form-row"> |
192 | | - <div class="col-md-12 form-group"> |
193 | | - <label for="custom_conditions">Custom Conditions</label> |
194 | | - <div class="form-control" id="custom_conditions"></div> |
195 | | - </div> |
| 193 | + <div class="collapse mt-3" id="customConditionsCollapse"> |
| 194 | + <div class="form-row"> |
| 195 | + <div class="col-md-12 form-group"> |
| 196 | + <label for="custom_conditions">Custom Conditions</label> |
| 197 | + <div class="form-control" id="custom_conditions"></div> |
196 | 198 | </div> |
197 | 199 | </div> |
| 200 | + </div> |
| 201 | + |
| 202 | + <div class="collapse" id="customConditionsExamples"> |
| 203 | + <div class="card card-body mt-2"> |
| 204 | + <p>Here are two sample custom conditions:</p> |
| 205 | + <pre><code> |
| 206 | +[{ |
| 207 | + "field": "alert_severity_id", |
| 208 | + "operator": "in", |
| 209 | + "value": [1, 2] |
| 210 | +}, |
| 211 | +{ |
| 212 | + "field": "alert_title", |
| 213 | + "operator": "like", |
| 214 | + "value": "phishing" |
| 215 | +}]</code></pre> |
| 216 | +<pre><code> |
| 217 | +[{ |
| 218 | + "field": "severity.severity_name", |
| 219 | + "operator": "like", |
| 220 | + "value": "Critical" |
| 221 | +}] |
| 222 | +</code></pre> |
| 223 | + <p>Copy one of these conditions and paste it into the "Custom Conditions" field above, then adjust the values as needed.</p> |
| 224 | + </div> |
| 225 | + </div> |
198 | 226 | <div class="form-row mt-3"> |
199 | 227 | <div class="col centered"> |
200 | 228 | <button type="submit" class="btn btn-sm btn-primary">Apply Filters</button> |
|
0 commit comments