Combine alarm direction and target into one condition #34

Closed
opened 2026-07-20 14:26:36 +02:00 by minimons · 0 comments
Owner

Currently, an alarm condition is split across two fields in the Evelyn alarm configuration file

# ... DIRECTION         TARGET
...  BELOW              {{SOL_LONG_LIQ_PRICE}}+0.25%

Replace these with a single CONDITION expression:

... CONDITION
< {{SOL_LONG_LIQ_PRICE}}+0.25%

Support the following operators:

< X
<= X
> X
>= X

(X --> Y)
[X --> Y)
(X --> Y]
[X --> Y]

The brackets determine whether each range boundary is inclusive.

Example of non-overlapping conditions:

< {{SOL_LONG_LIQ_PRICE}}+0.25%
[{{SOL_LONG_LIQ_PRICE}}+0.25% --> {{SOL_LONG_LIQ_PRICE}}+0.50%)
[{{SOL_LONG_LIQ_PRICE}}+0.50% --> {{SOL_LONG_LIQ_PRICE}}+1.00%)

Invalid expressions and ranges where the lower value exceeds the upper value must fail with a clear configuration error.

Currently, an alarm condition is split across two fields in the Evelyn alarm configuration file ```text # ... DIRECTION TARGET ... BELOW {{SOL_LONG_LIQ_PRICE}}+0.25% ``` Replace these with a single `CONDITION` expression: ```text ... CONDITION < {{SOL_LONG_LIQ_PRICE}}+0.25% ``` Support the following operators: ```text < X <= X > X >= X (X --> Y) [X --> Y) (X --> Y] [X --> Y] ``` The brackets determine whether each range boundary is inclusive. Example of non-overlapping conditions: ```text < {{SOL_LONG_LIQ_PRICE}}+0.25% [{{SOL_LONG_LIQ_PRICE}}+0.25% --> {{SOL_LONG_LIQ_PRICE}}+0.50%) [{{SOL_LONG_LIQ_PRICE}}+0.50% --> {{SOL_LONG_LIQ_PRICE}}+1.00%) ``` Invalid expressions and ranges where the lower value exceeds the upper value must fail with a clear configuration error.
minimons added the enhancement label 2026-07-20 14:26:36 +02:00
minimons self-assigned this 2026-07-20 14:26:36 +02:00
minimons added this to the Evelyn project 2026-07-20 14:26:36 +02:00
minimons moved this to Done in Evelyn on 2026-07-20 21:26:53 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: r35157/com_r35157_nenjim-hubd-impl_ref#34