Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
utiliser:creating_rules [2025/01/16 02:47]
optrix
utiliser:creating_rules [2025/01/16 03:07] (current)
optrix
Line 3: Line 3:
 The utilisation system calculates the the [[state|state]] of each asset using **rules**. The utilisation system calculates the the [[state|state]] of each asset using **rules**.
  
-Each rule has a minimum of two attributes - a **name** and a **method**.+Each rule must include a **method**.
  
 <code> <code>
 { {
-            "name": "Delay", 
             "method": "ValueMatch"             "method": "ValueMatch"
 } }
 </code> </code>
- 
- 
  
 There are a few different //methods// - types of rule that each have their own specific parameters. There are a few different //methods// - types of rule that each have their own specific parameters.
Line 20: Line 17:
 ===List of Methods=== ===List of Methods===
  
-[[ValueMatch]] - Matches with the complete or partial text of a property.+[[ValueMatch]] - Matches with the complete or partial text of a property. \\ 
 +[[NonZero]] - Chooses between options depending on if a value is 'zero'.