Rule Playground
The Rule Playground is an interactive read-eval-print loop for the rule DSL. Use it to prototype expressions, inspect the field schema, and try out built-in metric primitives before promoting your logic into a full rule.
Sections
| Section | Purpose |
|---|---|
| Expression editor | Write a DSL expression and choose a scope (requests or sessions). Results stream back against the current date and workspace filters |
| Field browser | Every field available on SessionRequest and Session, with types and short descriptions |
| Function catalog | All DSL helpers (countWhere, flatCount, someWhere, ratio, truncate, and others) |
| Metric list | Named metric primitives you can reference from any rule |
Workflow
- Pick a scope and type an expression.
- Hit Evaluate to see the result, along with a count of matched rows.
- Iterate against your real sessions until the expression captures the behaviour you want.
- Copy the final expression into a rule in the Rule Editor.
The playground shares its DSL runtime with the rule engine, so any expression that works here will behave identically when wired into a full rule.