Ad Widget

Collapse

Does history.get exclude dropouts in data?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clarkritchie
    Member
    • Aug 2013
    • 46

    #1

    Does history.get exclude dropouts in data?

    I am using the history.get API call to retrieve data for a given period so that I can graph data outside of Zabbix using my own graphing library.

    I know there are gaps in my data, and the graphs in Zabbix reflect those dropouts.

    However, the JSON the API returns seems complete, there are no gaps reflected in the array of data points. Whereas I would expect null values for these dropouts. Does the API exclude incomplete data points?

    What I see is a nice tidy array of objects, e.g.

    {clock: "1402590613",
    hosts: Array[1],
    itemid: "48810",
    ns: "105226205",
    value: "0.3730"},
    {clock: "1402590913",
    hosts: Array[1],
    itemid: "48810",
    ns: "978817480",
    value: "0.3770"}
    {...


    What I would expect are null values for missing data points, let's say there was a missed data collection at time 1402590913:

    {clock: "1402590613",
    hosts: Array[1],
    itemid: "48810",
    ns: "105226205",
    value: "0.3730"},
    {clock: "1402590913",
    hosts: Array[1],
    itemid: "48810",
    ns: "978817480",
    value: null }
    {...


    Is there a flag I am missing? I didn't see anything to include null values in the docs for common method parameters. Without these missing points in the array of data points, my own version of the graph is inaccurate.

    Thank you.
    Last edited by clarkritchie; 13-06-2014, 19:42.
  • Jakob
    Junior Member
    • Jul 2019
    • 1

    #2
    We're running into the same issue.
    Is it possible to have history.get indicate the gaps, e.g. by having those values be null or an empty string?

    (we can work around it but having null values would be more convenient)

    Thanks.

    Comment

    Working...