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

    • Type: Change Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.28, 4.2.5
    • Fix Version/s: 5.0.0alpha4, 5.0 (plan)
    • Component/s: Server (S)
    • Labels:
    • Environment:
      n/a
    • Team:
      Team C
    • Sprint:
      Sprint 62 (Mar 2020)
    • Story Points:
      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

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

                Dates

                Created:
                Updated:
                Resolved: