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

Macro like {EVENT.TAGS} that expands to JSON format

    XMLWordPrintable

Details

    • Change Request
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.28, 4.2.5
    • 5.0.0alpha4, 5.0 (plan)
    • Server (S)
    • n/a
    • Team C
    • Sprint 62 (Mar 2020)
    • 0.25

    Description

      It would be nice if there were a macro like {EVENT.TAGS} that exports the data in JSON format.  I've managed to work around this by creating all of my tags with quoted names and values and then being crafty in the output specification:   "eventTags" : [\{\{EVENT.TAGS}}]

      What I've done is fragile, though as forgetting to quote the tag name and value will break the code consuming the data output.

      Attachments

        Issue Links

          Activity

            People

              asestakovs Aleksejs Sestakovs
              LarryDorman Larry Dorman
              Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: