ZABBIX Forums  
Old 09-11-2017, 18:19
Neighbour Neighbour is offline
Junior Member
Join Date: Nov 2017
Posts: 2
Default API trigger.get expand functions and macros separately

I would like the trigger.get API call to have separate arguments for expanding functions and expanding macro's.
Currently there is an argument `expandExpression` which expands both, but I only want the functions to be expanded, not the macros.
The reason I want this is to have the trigger.get API call return the same contents for the expression as the website does when viewing a trigger. It shows the expression with the functions expanded, but with the macros as they are.

A simple suggestion would be to create `expandExpressionFunctions` and `expandExpressionMacros` arguments.

Edit: Since functions are hidden in the webinterface, it might be better to always expand functions, and use `expandExpression` to only (additionally) expand macros.

Last edited by Neighbour; 10-11-2017 at 10:22.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 21:28.