[ZBXNEXT-3000] Expand Value Maps in history.get Created: 2015 Oct 07 Updated: 2015 Oct 08 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | API (A) |
Affects Version/s: | 3.0.0alpha2 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Trivial |
Reporter: | Raymond Kuiper | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | valuemapping | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
It would be logical to now have history.get output value mapped information as well. My suggestion is the following solution: We should be able to set a flag on the history.get call, expandValueMap feels logical to me. { "jsonrpc": "2.0", "method": "history.get", "params": { "output": "extend", "history": 3, "itemids": "23296", "sortfield": "clock", "sortorder": "DESC", "limit": 1, "expandValueMap": 1 }, "auth": "038e1d7b1735c6a5436ee9eae095879e", "id": 1 } The output would look something like this then: { "jsonrpc": "2.0", "result": [ { "itemid": "23296", "clock": "1351090456", "value": "5", "mappedvalue": "Some string representing this value", "ns": "435307141" } ], "id": 1 } |
Comments |
Comment by Oleksii Zagorskyi [ 2015 Oct 08 ] |
3000 - nice catch |