Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 3.4.14, 4.0.0
-
Fix Version/s: 4.0.4rc1, 4.2.0alpha3, 4.2 (plan)
-
Component/s: API (A)
-
Labels:
-
Environment:Centos 7, Ubutnu Xenial
-
Team:Team D
-
Sprint:Sprint 45, Sprint 46, Nov 2018, Sprint 47, Dec 2018
-
Story Points:0.5
Description
Steps to reproduce:
- call the function specifing hostids="YYYYY" and (itemids=["XXXXX"] or itemids="XXXXXX" etc ) and filters in time
In Example
z.history.get(hostids=10350, itemids=46525, history=0, time_from=1538132400.0, time_till=1538136000.0, sortfield='clock', sortorder='ASC')
Result:
returns all the history values for all the items of the host
Expected:
just the history values for the item specified
Work arround:
specify the filter filter like
z.history.get(hostids=10350, itemids=46525, history=0, time_from=1538132400.0, time_till=1538136000.0, sortfield='clock', sortorder='ASC', filter={"itemid":"46525"})
Attachments
Issue Links
- is duplicated by
-
ZBX-15363 4.0 history.get API returns incorrect history data if use both hostids and itemids parameter
-
- Closed
-