[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: |
|
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: , { "triggerid": "10002", "description": "" } ], <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 |
Comment by Pavels Jelisejevs (Inactive) [ 2012 Aug 09 ] |
Available in 2.0.3rc1 r29480 and 2.1.0 r29481. |