Alarm definitions and events
Alarm definitions (data/alarms/alarm_definitions.json) and the alarm events the engine records.
Keys are the JSON keys. Optional marks keys that are omitted when empty, or that may be absent (pointers).
AlarmDefinition
Section titled “AlarmDefinition”AlarmDefinition configures an alarm rule
Source: eaxScada/internal/alarms/alarms.go
| Key | Type | Optional | Description |
|---|---|---|---|
id |
string | ||
tag_path |
string | ||
name |
string | ||
description |
string | ||
category |
string | “Safety”, “Process”, “Environmental”, “Equipment”, “Diagnostic” | |
severity |
Severity | ||
condition |
ConditionType | ||
setpoint |
number | ||
deadband |
number | ||
trip_delay_ms |
integer | ||
clear_delay_ms |
integer | ||
target_roles |
string | “ALL”, “Operator,Supervisor”, etc. | |
require_comment |
boolean | ||
sound_alert |
boolean | ||
updated_at |
integer | ||
ack_required |
boolean | yes | Controller handshake (handshake.go). All optional: a definition without them behaves as before. AckRequired: false = the alarm needs no acknowledgement (it is active while its condition holds and returns to normal on its own; it never enters UNACK_ALARM or RTN_UNACK). Absent (nil) or true = required. |
ack_tag |
string | yes | AckTag: eaxScada writes 1 to it when the activation is acknowledged (by an operator or by PlcAckTag). Never 0: the controller resets it. |
shown_tag |
string | yes | ShownTag: eaxScada writes 1 to it once the activation has been shown on a signed-in operator’s screen. Never 0: the controller resets it. |
plc_ack_tag |
string | yes | PlcAckTag: a rising edge (0 to non-zero) of this tag while the activation is unacknowledged acknowledges it, recorded as the controller’s. Ignored when AckRequired is false. |
AlarmEvent
Section titled “AlarmEvent”AlarmEvent represents a live or historical alarm state transition
Source: eaxScada/internal/alarms/alarms.go
| Key | Type | Optional | Description |
|---|---|---|---|
event_id |
string | ||
alarm_id |
string | ||
tag_path |
string | ||
name |
string | ||
description |
string | ||
category |
string | ||
severity |
Severity | ||
condition |
ConditionType | ||
setpoint |
number | ||
event_type |
EventType | ||
previous_state |
State | ||
current_state |
State | ||
value |
number | ||
target_roles |
string | yes | |
timestamp |
integer | Nanoseconds | |
active_time |
integer | yes | |
ack_time |
integer | yes | |
ack_user |
string | yes | |
ack_reason |
string | yes | |
shelved_until |
integer | yes | |
shelved_user |
string | yes | |
shelved_reason |
string | yes | |
unshelved_user |
string | yes | UnshelvedUser is who lifted a shelve (UNSHELVE events only); “SYSTEM” when the shelve expired. |
suppressed |
boolean | yes | Suppressed: alarm evaluation is suspended (the runtime is stopped), so this state is the last one known, not a live one. Set on the copies the engine returns, never journaled. |
suppressed_reason |
string | yes | |
message_key |
string | yes | Translatable texts (messages.go): the translation keys of the definition’s name (MessageKey) and description, and the arguments of their {placeholders}. Name and Description keep the literal text in the project’s default language, so a reader without translations (an export, an older client) still has it. Journaled with the event. |
message_args |
map of string to string | yes | |
description_key |
string | yes | |
activation_id |
string | yes | Controller handshake (handshake.go). ActivationID: the event id of the TRIP that started the current activation (occurrence); unchanged by its ACK, RTN, SHOWN and SIGNAL events. A shown confirmation and every handshake write name it. |
no_ack_required |
boolean | yes | NoAckRequired: this activation needs no acknowledgement (its definition’s ack_required is false): ACK_ALARM here means “active”, not “acknowledged by someone”. |
confirm_shown |
boolean | yes | ConfirmShown: the definition has a shown_tag, so an operator screen that displays this activation confirms it (POST /api/alarms/shown). |
shown_user |
string | yes | ShownUser / ShownTime: the first signed-in operator whose screen displayed this activation, and when. |
shown_time |
integer | yes | |
shown_signal |
SignalState | yes | ShownSignal / AckSignal: the state of this activation’s write of 1 to the shown_tag / ack_tag: “” none due, “pending”, “written” (confirmed: never sent again, by this node or by a new primary after failover), “dropped” (not written before the activation ended: never sent). |
ack_signal |
SignalState | yes | |
ended_time |
integer | yes | EndedTime: when this activation ended (the alarm went from a standing state to NORMAL or SHELVED); 0 while it stands. Its pending signals are not retried after it (handshake.go). |
note |
string | yes | Note: what this journal record adds (“no acknowledgement required”, “shown on an operator screen”, the handshake write). Per event. |
simulated |
boolean | yes | Simulated: Value came from a simulated source (a simulated eaxPLC accepted for commissioning: tagengine/source.go), not the plant. On a TRIP or RTN it says the alarm was raised or cleared by a simulated value; on the live alarm, that its latest value is simulated. Only a marker: it never changes how the alarm evaluates. Journaled; rows written before it read false. |
quality |
string | yes | Value quality (quality.go). Quality: the quality name of the value the alarm last saw when it was not Good (“Uncertain (EU exceeded)”, “Bad”); “” for Good. On a quality alarm, the quality of the value that raised or cleared it. Journaled. |
held |
boolean | yes | Held / HeldSince: the tag’s value is Bad, so the alarm keeps the state it had (it neither trips nor returns to normal on a Bad value) since HeldSince (Unix ns). Value is the last reading. Live record only. |
held_since |
integer | yes | |
quality_alarm |
boolean | yes | QualityAlarm: this is a tag’s “signal unreadable” alarm (derived, no stored definition); Covers lists the alarms on the tag it covers. |
covers |
list of string | yes |
Severity
Section titled “Severity”Severity levels
Source: eaxScada/internal/alarms/alarms.go
Underlying type: string.
| Value | Name | Description |
|---|---|---|
CRITICAL |
SeverityCritical |
|
HIGH |
SeverityHigh |
|
MEDIUM |
SeverityMedium |
|
LOW |
SeverityLow |
|
INFO |
SeverityInfo |
ConditionType
Section titled “ConditionType”AlarmCondition indicates the threshold rule
Source: eaxScada/internal/alarms/alarms.go
Underlying type: string.
| Value | Name | Description |
|---|---|---|
HIGH_HIGH |
CondHighHigh |
|
HIGH |
CondHigh |
|
LOW |
CondLow |
|
LOW_LOW |
CondLowLow |
|
EQUAL |
CondEqual |
|
NOT_EQUAL |
CondNotEqual |
|
DEVIATION_HIGH |
CondDeviationHigh |
|
DEVIATION_LOW |
CondDeviationLow |
|
RATE_OF_CHANGE |
CondROC |
|
BAD_QUALITY |
CondBadQuality |
EventType
Section titled “EventType”EventType categorizes state machine transitions in the SOE journal
Source: eaxScada/internal/alarms/alarms.go
Underlying type: string.
| Value | Name | Description |
|---|---|---|
TRIP |
EventTrip |
|
ACK |
EventAck |
|
RTN |
EventRTN |
|
SHELVE |
EventShelve |
|
UNSHELVE |
EventUnshelve |
|
SHOWN |
EventShown |
EventShown: the activation was displayed on a signed-in operator’s screen (handshake.go). The state does not change. |
SIGNAL |
EventSignal |
EventSignal: a controller handshake tag was written (1) for the activation (handshake.go). The state does not change. |
ISA-18.2 Alarm States
Source: eaxScada/internal/alarms/alarms.go
Underlying type: string.
| Value | Name | Description |
|---|---|---|
NORMAL |
StateNormal |
|
UNACK_ALARM |
StateUnackAlarm |
|
ACK_ALARM |
StateAckAlarm |
|
RTN_UNACK |
StateRTNUnack |
|
SHELVED |
StateShelved |
SignalState
Section titled “SignalState”SignalState is the state of one handshake write of an activation.
Source: eaxScada/internal/alarms/handshake.go
Underlying type: string.
| Value | Name | Description |
|---|---|---|
"" |
SignalNone |
|
pending |
SignalPending |
|
written |
SignalWritten |
|
dropped |
SignalDropped |
SignalDropped: not written before the activation ended, and never sent (DropSignal). |