Streaming Hub 0.1
Statistics workspace
Store derived values and keep them updated from incoming signals.
AlphaThe Statistics workspace connects a source signal to a named value under stats.*. It is useful for counters, current titles, prediction state and other values that should update independently of an automation sequence.
Workspace elements
| Callout | Element | Purpose |
|---|---|---|
| 1 | Statistic values | Lists each statistic, its current value, number of update rules and runtime status. Add creates a definition; Remove deletes the selected definition. |
| 2 | Value settings | Enabled activates the definition. Name is the display label, Key creates its stats.* path, Description documents it, Value type controls conversion, Initial value is the reset value, and Scope chooses session or persistent storage. |
| 3 | Current value | Displays the live session or persistent value. Set writes a manual value; Reset restores the configured initial value. |
| 4 | Update rules | Lists the signal-driven rules for the selected statistic. Add and Remove manage rules; the row checkbox enables one rule, while the row actions duplicate or delete it. |
| 5 | Rule settings | Rule name identifies the rule; Source signal selects its trigger; Value source chooses where the incoming value comes from; Incoming value selects or expresses that value; Destination statistic identifies the target; Apply to value chooses Replace or another supported operation. |
| 6 | Preview | Shows the expression Streaming Hub will apply, so you can verify the source path, target path and operation before a signal arrives. |
| 7 | Conditions and diagnostics | Optional conditions, delivery controls and de-duplication narrow when a rule applies. Diagnostics reports status, last match, last input and last result. |
| 8 | Encyclopedia browser | Searches the registered signal catalog and lets you inspect the source selected for a rule. |
| 9 | Encyclopedia actions | Export Docs writes reference material; Copy Name, Copy Item Id and Copy Contract Paths copy stable identifiers for authoring. |
| 10 | Contract reference | Shows the selected signal description, capabilities, requirements, inputs and event contract fields. |
Statistic paths and scope
The configured key becomes the path used by automations, macros and expressions—for example, stats.prediction_1_points. A session value starts from its initial value when a new session begins. A persistent value is stored with the project data and restored later. See Data and context for how these paths relate to event.*, vars.* and runtime.*.
Build an update rule
- Select a statistic, then add a rule.
- Choose the source signal. Use the Encyclopedia to inspect its exact contract.
- Choose the incoming field or expression and confirm the generated preview.
- Select how the value is applied, then use diagnostics to confirm the next matching event.