Tracks the hysteresis state of each alarm rule per production line. This is an internal state store changelog — not a public event contract.
State Machine
| Current State | Condition Met | Condition Cleared |
|---|---|---|
| NORMAL | → ACTIVE (fire alarm) | → NORMAL (no-op) |
| ACTIVE | → ACTIVE (no-op) | → CLEARED |
| CLEARED | → ACTIVE (re-fire alarm) | → NORMAL |
Key Fields
| Field | Type | Description |
|---|---|---|
| ruleId | string | Alarm rule ID |
| lineId | string | Production line ID |
| state | enum | NORMAL, ACTIVE, or CLEARED |
| currentValue | double | Last evaluated metric value |
| threshold | double | Rule threshold |
| lastTransition | long | Timestamp of last state change |