mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Key alerts now deliver only via the DSH hub; Modal Body no longer flex-shrinks the rules rows to empty. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
No EOL
786 B
Python
18 lines
No EOL
786 B
Python
"""Stable runtime-task status codes for frontend i18n (rt:* / ws:* / fwd:*)."""
|
|
|
|
RT_STARTUP_ALARM_SYNC_BEFORE_WS = "rt:startup_alarm_sync_before_ws"
|
|
RT_STARTUP_GATE_WAITING = "rt:startup_gate_waiting"
|
|
RT_WSS_ACTIVE_SKIP_REST = "rt:wss_active_skip_rest"
|
|
RT_PULLING_ALARMS_CURRENT = "rt:pulling_alarms_current"
|
|
RT_ALARMS_SYNC_IN_PROGRESS_SKIP = "rt:alarms_sync_in_progress_skip"
|
|
RT_PULLING_INVENTORY = "rt:pulling_inventory"
|
|
RT_PULLING_TOPOLOGY = "rt:pulling_topology"
|
|
RT_UME_WS_DISABLED_NO_BASE_URL = "rt:ume_ws_disabled_no_base_url"
|
|
RT_RESUMED_SYNC_SOON = "rt:resumed_sync_soon"
|
|
RT_RESUMED_WSS_RECONNECT = "rt:resumed_wss_reconnect"
|
|
RT_RESUMED = "rt:resumed"
|
|
RT_KEEPALIVE_FAILED = "rt:keepalive_failed"
|
|
|
|
|
|
def ws_state_code(state: str) -> str:
|
|
return f"ws:{str(state or '').strip()}" |