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

Get macro value from JS code of webhook

    XMLWordPrintable

    Details

    • Type: New Feature Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.4.6, 5.0.0alpha2
    • Fix Version/s: None
    • Component/s: Server (S)

      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

              Assignee:
              wiper Andris Zeila
              Reporter:
              vjaceslavs Vjaceslavs Bogdanovs
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: