Variable: EVENT_PRIORITIES
const
EVENT_PRIORITIES: {CRITICAL
: readonly ["performance:warning"
,"system:error"
,"system:shutdown"
];HIGH
: readonly ["database:transaction-completed"
,"monitor:status-changed"
,"monitor:up"
,"monitor:down"
,"site:removed"
];LOW
: readonly ["performance:metric"
];MEDIUM
: readonly ["config:changed"
,"monitor:added"
,"site:added"
,"site:updated"
]; }
Defined in: electron/events/eventTypes.ts:1715
Priority levels for events.
Type Declaration
CRITICAL
readonly
CRITICAL: readonly ["performance:warning"
,"system:error"
,"system:shutdown"
]
Critical priority events that require immediate attention.
Remarks
Events that indicate system-level issues, performance problems, or application shutdown scenarios that need immediate processing.
HIGH
readonly
HIGH: readonly ["database:transaction-completed"
,"monitor:status-changed"
,"monitor:up"
,"monitor:down"
,"site:removed"
]
High priority events for important state changes.
Remarks
Events that represent significant changes to monitoring state, database transactions, or site availability that should be processed promptly.
LOW
readonly
LOW: readonly ["performance:metric"
]
Low priority events for routine data collection.
Remarks
Events that represent routine metrics and data collection activities that can be processed with lower priority.
MEDIUM
readonly
MEDIUM: readonly ["config:changed"
,"monitor:added"
,"site:added"
,"site:updated"
]
Medium priority events for standard operations.
Remarks
Events that represent normal operational activities like configuration changes and site management operations.
Remarks
Categorizes events by operational importance for filtering and middleware processing. Higher priority events should receive immediate attention and processing.
Example
const isCritical = EVENT_PRIORITIES.CRITICAL.includes("system:error");