I am looking for a way to fetch the history of a certain trigger. I read the API and I don't find the correct API get.
I'm looking for something similar than what zabbix does in their frontend.
Hope you can point me in the right direction. Thanks.
I found a solution,but it requires 2 API calls.
First get events (event.get), with source = 0. Source 0 means events generated by a trigger.
Extract all "objectids", as they point to the trigger. Then, do trigger.get with triggerids = list of extracted objectids
Then do some manual mapping until you have what you need.