Ad Widget

Collapse

Is it possible to set event tags using API?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • StormScorpion
    Junior Member
    • Feb 2024
    • 22

    #1

    Is it possible to set event tags using API?

    Hi,
    is it possible to set tags to an event using API?

    Some Media Types (Jira, Zammad for example) use tags to set an link to the created ticket. I use a webhook to call a Lambda on AWS with some logic (join multiple problems of one host into a single ticket) which will be processed asyncronous. So during the runtime of the webhook I dont know the ticket id. THerefore I want to set it later using API, but in the docs there are only get methods.
  • Answer selected by StormScorpion at 17-12-2024, 11:01.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    I dont think you can.. All tags are gathered together during the event (including the tags created by action like webhook). So if you do not get any ID-s back and do not process them in the webhook, then you have no options to add that tag later..
    Theres always insert to problem_tag table... I do not want even to guess, what might happen.. you need eventid and tag name and its value... ​​
    Last edited by cyber; 13-12-2024, 16:01.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #2
      I dont think you can.. All tags are gathered together during the event (including the tags created by action like webhook). So if you do not get any ID-s back and do not process them in the webhook, then you have no options to add that tag later..
      Theres always insert to problem_tag table... I do not want even to guess, what might happen.. you need eventid and tag name and its value... ​​
      Last edited by cyber; 13-12-2024, 16:01.

      Comment

      Working...