[ZBX-2060] api trigger.get should be able to return expanded expressions and descriptions Created: 2010 Feb 23  Updated: 2017 May 30  Resolved: 2012 Jul 31

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.8.1
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Alexey Fukalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: API, expressions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-1209 Full expression in API get.trigger fu... Closed
is duplicated by ZBX-3096 API trigger functions don't work as e... Closed

 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 27 ]

There is an "expandDescription" parameter for trigger.get to return the expanded trigger descriptions. For the expressions a similar parameter will be implemented.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 27 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-2060.

Comment by Toms (Inactive) [ 2012 Jul 30 ]

(1) empty descriptions returned, shouldn't be returned with "output":"shorten"

API call: {"jsonrpc":"2.0","method":"trigger.get","params":

{"expandDescription":1,"expandExpression":1,"limit":2,"output":"shorten"}

,"id":0,"auth":"c332346c95365dff63cad208dbe590e6"}

returns:
{
"jsonrpc": "2.0",
"result": [

{ "triggerid": "10001", "description": "" }

,

{ "triggerid": "10002", "description": "" }

],
"id": 0
}

<pavels> RESOLVED.

<Toms> CLOSED

Comment by Toms (Inactive) [ 2012 Jul 30 ]

(2) triggerprototypes.get doesn't expand description

<pavels> It shouldn't. Macros are only supported in trigger descriptions. CLOSED.

<Toms> Add new ZBX as we discussed. CLOSED

<pavels> This will be handled in ZBXNEXT-1346.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 09 ]

Documented the "expandExpression" parameter in:

http://www.zabbix.com/documentation/2.0/manual/appendix/api/trigger/get
http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_2.0?&#section203

Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 09 ]

Available in 2.0.3rc1 r29480 and 2.1.0 r29481.

Generated at Thu Apr 25 16:21:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.