-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.4.5, 5.0.0alpha1, 5.0.0alpha2
-
Sprint 61 (Feb 2020), Sprint 62 (Mar 2020)
-
0.25
{EVENT.VALUE}
macro can be used to get status of problem.
According to the documentation:
Numeric value of the event that triggered an action (1 for problem, 0 for recovering).
Consider the following use case:
- Create trapper item (item trap on host hvost)
- Create trigger {hvost:trap.last()}=1
- Create two media types (email and webhook) and add messages for problem, resolve and update (use {EVENT.VALUE} macro in both email messages and webhook).
- Send value 1 for trapper item. Problem is generated, and messages are sent.
- Send value 0 for trapper item. Problem is resolved, messages are sent.
- Use problem acknowledge dialog to leave a message (different user should be used to get notifications) without changing anything else.
- Observe that {EVENT.VALUE} macro is valid for email, but is not valid for webhook (showing 1 instead of 0).
Results for email (macro used in subject, value is number in brackets):
Results for webhook (webhool throws values or three macros, last one is
{EVENT.VALUE}):
- mentioned in
-
Page Loading...