Projects STRLCPY bearer Commits 44296f18
🤬
  • ■ ■ ■ ■ ■ ■
    docs/guides/custom-rule.md
    skipped 235 lines
    236 236   description: "This is an example rule created based on the tutorial."
    237 237  ```
    238 238   
     239 +## Syntax updates
     240 +### v1.1 Trigger changes
     241 +If you have created a custom rule before v1.1 you will need to make the some small changes
     242 + 
     243 +#### Local, Present
     244 +If you use `trigger: local` or `trigger: present` you can simply remove the trigger attribute and your rule should work as before.
     245 + 
     246 +#### Absence
     247 +If you use `trigger: absence`, replace it with the following syntax and remove `trigger_rule_on_presence_of` from your existing rule.
     248 + 
     249 +```yaml
     250 +trigger:
     251 + match_on: absence
     252 + required_detection: # whatever value you had for `trigger_rule_on_presence_of`
     253 +```
     254 + 
     255 +#### Global
     256 +For `trigger: global` replace it with the following syntax.
     257 + 
     258 +```yaml
     259 +trigger:
     260 + data_types_required: true
     261 +```
     262 + 
    239 263  ## Need some help?
    240 264   
    241 265  If you’re running into any problems or need some help, check out the [Discord Community]({{meta.links.discord}}). You can also [create a new issue]({{meta.links.issues}}) on GitHub.
     266 + 
Please wait...
Page is in error, reload to recover