Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5815

Get macro value from JS code of webhook

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 4.4.6, 5.0.0alpha2
    • Server (S)

      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):

            dgoloscapov Dmitrijs Goloscapovs
            vjaceslavs Vjaceslavs Bogdanovs
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: