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

Get macro value from JS code of webhook

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: