-
New Feature Request
-
Resolution: Won't fix
-
Minor
-
None
-
4.4.6, 5.0.0alpha2
Support of macro resolver from JS code will allow webhooks to have much simple configuration. Now to get the state of the event (if it is a problem or recovery, get event source, get event update and event recovery data) we should add about seven fields just to pass event related macros to Webhook. And it is not like we are encouraging changing field value from macros to some predefined values.
So for the most part all the Webhooks require such macros:
- {ALERT.MESSAGE}
- {ALERT.SUBJECT}
- {EVENT.RECOVERY.VALUE}
- {EVENT.SOURCE}
- {EVENT.UPDATE.ACTION}
- {EVENT.UPDATE.MESSAGE}
- {EVENT.UPDATE.STATUS}
- {USER.FULLNAME}
- {EVENT.VALUE}
If macro resolving can be done from JS there will be no need to add so many params to the form and that will make Webhook configuration much simplier for users (red fields could be removed):
- duplicates
-
ZBXNEXT-5927 Using built-in macros in JavaScript and regular expression preprocessing
- Reopened
- part of
-
ZBXNEXT-5185 JavaScript preprocessing user macros support
- Closed
- mentioned in
-
Page Loading...