AlarmState (v1.0.0)

Alarm hysteresis state (internal)

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 StateCondition MetCondition Cleared
NORMAL→ ACTIVE (fire alarm)→ NORMAL (no-op)
ACTIVE→ ACTIVE (no-op)→ CLEARED
CLEARED→ ACTIVE (re-fire alarm)→ NORMAL

Key Fields

FieldTypeDescription
ruleIdstringAlarm rule ID
lineIdstringProduction line ID
stateenumNORMAL, ACTIVE, or CLEARED
currentValuedoubleLast evaluated metric value
thresholddoubleRule threshold
lastTransitionlongTimestamp of last state change